home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / os2 / pmsx211b.zip / PMSNDX.HLP (.txt) < prev    next >
OS/2 Help File  |  1996-01-07  |  437KB  |  4,082 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4.                                    PMsndX 2.11
  5.                                        by
  6.                                 William S. Hiles
  7.                              copyright WiSHware Inc.
  8.  
  9. Please see Known Problems with this release for important information before 
  10. using this version of PMsndX. 
  11.  
  12. Firstly, thank you for using the new 2.XX version of PMsndX. If you are a user 
  13. of the 1.XX program called PMsndX, you have probably been surprised that you 
  14. have not found the program called PMsndX.EXE any longer.  There is a good 
  15. reason for that.  PMsndX has been broken into more than one program. 
  16.  
  17. For clarity, the term EdSndX is the name of the sound editor, the term PlSndX 
  18. is the name of the sound player, and the term PMsndX is the term used to 
  19. describe a feature that is common to both EdSndX and PlSndX. 
  20.  
  21. This is the second generation of PMsndX.  In versions prior to 2.0, PMsndX was 
  22. comprised of a single program which performed the same functions of both EdSndX 
  23. and PlSndX but operated on a single sample at a time.  With the introduction of 
  24. version 2.0, PMsndX has been divided into a family of programs which are more 
  25. specialized and intended to meet the needs of a broader audience. 
  26.  
  27. The general idea of the new organization is to provide a more focused goal for 
  28. the individual programs along the same theme.  The general purpose of this 
  29. family of programs is to perform various functions for virtually any sound 
  30. format. In version 1.xx, the program started out to simply convert formats, 
  31. then grew into an editor, then a playback tool, and so forth.  The result was a 
  32. program that was somewhat unfocused and did not provide a consolidated user 
  33. interface. Version 2.0 is a complete rewrite of the previous user interface 
  34. which takes advantage of lessons learned during the development of 1.xx. 
  35.  
  36. All of the PMsndX family of software utilize common resources such as the 
  37. initialization file and registration information.  The Properties boxes for all 
  38. of the programs are consistent and will affect one another except where noted 
  39. as a specific feature of one program.  As a result, the Properties box may 
  40. contain items that are not necessarily related to the particular program being 
  41. used but can be changed from any program in the family. This approach provides 
  42. a common and consistent approach to controlling the options for the programs. 
  43.  
  44. The programs in the PMsndX family also were written specifically for OS/2 and 
  45. you will not find another program with the same look and feel under any other 
  46. operating system.  The user interface was designed from scratch under OS/2 and 
  47. is not a port from any other system.  As a result, it takes full advantage of 
  48. the capabilities of OS/2 and has been written to conform to IBM's goals with 
  49. the Common User Access specifications. 
  50.  
  51. EdSndX: provides most of the functionality that was in PMsndX prior to 2.0. 
  52. Notably missing from EdSndX is the ability to play from the command line.  This 
  53. rewrite took about 6 months to complete and provides a complete Multiple 
  54. Document Interface (MDI) capability.  Hence, the name change as a result of the 
  55. change from a do-all program to a more capable sound editor. 
  56.  
  57. PlSndX: provides the ability to play any of the sound samples which can be 
  58. loaded by EdSndX from the command line or through Drag/Drop.  PlSndX does not 
  59. provide any editing features but does provide the capability to save a sample 
  60. in any of the supported formats.  Further, it has some enhancements to reduce 
  61. the memory requirements of the program during playback. 
  62.  
  63.  
  64. ΓòÉΓòÉΓòÉ 2. EdSndX ΓòÉΓòÉΓòÉ
  65.  
  66.                                    PMsndX 2.11
  67.                                        by
  68.                                 William S. Hiles
  69.                              copyright WiSHware Inc.
  70.  
  71. EdSndX is one part of the family of programs grouped under the name PMsndX. 
  72. EdSndX goes beyond just a cut and paste tool for sound by providing a rich set 
  73. of tools for manipulating samples in memory. EdSndX utilizes multiple threads, 
  74. the clipboard, Drag/Drop, and the MMPM/2 services present in the Workplace 
  75. Shell to provide a robust editor for everyone from the beginner to the more 
  76. advanced users.  Like all of the tools in the PMsndX family, EdSndX can be run 
  77. on any system irregardless of whether MMPM/2 is installed because all of the 
  78. routines were written from hand including the animated buttons and routines for 
  79. reading and writing the various sound formats.  Additional advantages to this 
  80. approach include a greater degree of control and some customized features like 
  81. the volume control that you will not find anywhere else.  The obvious 
  82. disadvantage is that the routines that IBM provides in the MMPM/2 DLLs have 
  83. been thoroughly tested and may be more robust that the ones that I have 
  84. provided. 
  85.  
  86.  
  87. ΓòÉΓòÉΓòÉ 2.1. Control Panel ΓòÉΓòÉΓòÉ
  88.  
  89. The control panel is the central point of control for EdSndX.  From the control 
  90. panel, the EDITOR, PROPERTIES, TOOLS, and HELP can be launched.  The control 
  91. panel has a system menu which provides access to the standard OS/2 menu 
  92. controls.  Additionally, the system menu for the control panel provides access 
  93. to the ABOUT, WELCOME, HELP, RESET SIZE, PROPERTIES, and FILE LIST. 
  94.  
  95. The control panel is a window under the OS/2 Workplace Shell and as such can be 
  96. resized using the border of the window. See reset size for instructions on 
  97. restoring the default size. 
  98.  
  99. The control panel is also the place to receive drag/drop operations.  Such 
  100. operations are accomplished by dragging a sound file to the control panel and 
  101. dropping it anywhere within the border of the panel and below the titlebar. 
  102. EdSndX will automatically open an editor for the sample. See drag/drop for more 
  103. information on  performing drag/drop operations. 
  104.  
  105.  
  106. ΓòÉΓòÉΓòÉ 2.1.1. System Menu ΓòÉΓòÉΓòÉ
  107.  
  108. As with any OS/2 program written for the Presentation Manager, EdSndX has an 
  109. icon in the top left corner of the control panel for accessing a system menu. 
  110.  
  111. The menu items provided in the system menu are: 
  112.  
  113.  Restore        Restore the windows after being minimized 
  114.  Move           Move the control window 
  115.  Size           Resize the main control panel 
  116.  Minimize       Minimize all of the windows of EdSndX to an icon 
  117.  Close          Close the all windows and exit 
  118.  About          Display information about the author and version and 
  119.                 registration 
  120.  Welcome        Display information about what is new to this version 
  121.  Help           Bring up the help system 
  122.  Reset Size     Reset the size of the main control panel to the default 
  123.  Properties     Change program operational parameters 
  124.  File List      List open files and switch focus 
  125.  
  126.  
  127. ΓòÉΓòÉΓòÉ 2.1.1.1. Restore ΓòÉΓòÉΓòÉ
  128.  
  129. During the use of EdSndX, the user may select to Minimize the windows to an 
  130. icon on the desktop.  To restore the window from the icon the user may either 
  131. double click on the icon or may press a mouse button while the pointer is over 
  132. the icon to bring up the system menu and select the restore item. 
  133.  
  134.  
  135. ΓòÉΓòÉΓòÉ 2.1.1.2. Move ΓòÉΓòÉΓòÉ
  136.  
  137. EdSndX provides the standard controls for moving the windows around on the 
  138. desktop.  It is generally easiest to use the mouse to select the titlebar of 
  139. the window and drag the window to the new location.  If the user uses the 
  140. system menu to move the window, the mouse will be centered in the control 
  141. window and any movement of the mouse will move the window until a mouse button 
  142. is pressed. 
  143.  
  144.  
  145. ΓòÉΓòÉΓòÉ 2.1.1.3. Size ΓòÉΓòÉΓòÉ
  146.  
  147. EdSndX provides the standard control for resizing the main control panel.  When 
  148. resizing, the main control panel will automatically adjust the vertical size of 
  149. the window to maintain the aspect of the buttons. 
  150.  
  151.  
  152. ΓòÉΓòÉΓòÉ 2.1.1.4. Minimize ΓòÉΓòÉΓòÉ
  153.  
  154. All of the windows of EdSndX can be minimized quickly by either selecting the 
  155. minimize button on the upper right corner of the control panel or by using the 
  156. Minimize menu item of the system menu.  Either action performs the same 
  157. function. 
  158.  
  159.  
  160. ΓòÉΓòÉΓòÉ 2.1.1.5. Close ΓòÉΓòÉΓòÉ
  161.  
  162. To exit EdSndX the user can select the Close menu item from the system menu. 
  163. This is the default selection of the menu which enables the user to double 
  164. click on the EdSndX icon in the top left corner of the control panel to exit 
  165. the program. 
  166.  
  167. When the any of the PMsndX programs are terminated, if changes have been made 
  168. to the Properties box, the data will be saved to the initialization file before 
  169. the program exits.  Before exiting, EdSndX requests verification that the user 
  170. wants to exit to prevent accidentally exiting. All windows of EdSndX, including 
  171. any dialog boxes, are removed from the screen when the program terminates. 
  172.  
  173. If the data in the memory buffers has been modified, EdSndX will warn the user 
  174. that there are modified buffers and ask for verification that the user really 
  175. wants to exit. 
  176.  
  177.  
  178. ΓòÉΓòÉΓòÉ 2.1.1.6. About ΓòÉΓòÉΓòÉ
  179.  
  180. To find the version and other information about EdSndX the About menu item can 
  181. be selected from the system menu. The registration can be updated by pressing 
  182. the REGISTER button. 
  183.  
  184. PMsndX is just one of the programs written by the Author for Intel based 
  185. machines.  All programs developed under the WiSHware Inc. name have been 
  186. developed solely by the author (duhh, the Author is the sole member of the 
  187. company) and are copyrighted by US Copyright laws. 
  188.  
  189.  
  190. ΓòÉΓòÉΓòÉ 2.1.1.7. Welcome ΓòÉΓòÉΓòÉ
  191.  
  192. The HISTORY.TXT file contains a very complete list of all the changes between 
  193. each of the versions.  When viewed as a whole, it also summarizes the total 
  194. functionality of PMsndX.  Each version has specific changes which are 
  195. highlighted in the Welcome display. This display also shows the current 
  196. registration status of the program and the registration can be updated by 
  197. pressing the REGISTER button. 
  198.  
  199.  
  200. ΓòÉΓòÉΓòÉ 2.1.1.8. Help ΓòÉΓòÉΓòÉ
  201.  
  202. PMsndX is equipped with extensive on line help that can be accessed by 
  203. selecting HELP from the system menu or from the main control panel.  When this 
  204. item is selected a window will appear which will display the start of the help 
  205. information. Help can also be accessed by pressing Alt-H or the F1 key. 
  206.  
  207. Links to other text is displayed in a blue-green color and can be selected to 
  208. jump to that description in the text. When the control panel buttons appear in 
  209. a tabular form, the buttons are active links in the help like the blue-green 
  210. colored text.  Pressing these buttons will jump to the respective text. 
  211.  
  212.  
  213. ΓòÉΓòÉΓòÉ 2.1.1.9. Reset Size ΓòÉΓòÉΓòÉ
  214.  
  215. The default button size for the display is 64x64. At any time, the user may 
  216. select to reset the size of the main control panel so that it returns to the 
  217. defaults.  The main control panel may be resized, using the border of the 
  218. window. 
  219.  
  220.  
  221. ΓòÉΓòÉΓòÉ 2.1.1.10. Program Properties ΓòÉΓòÉΓòÉ
  222.  
  223. The Properties menu item will bring up the same dialog that is accessed from 
  224. the PROPS button on the control panel. 
  225.  
  226.  
  227. ΓòÉΓòÉΓòÉ 2.1.1.11. File List ΓòÉΓòÉΓòÉ
  228.  
  229. Each window of the editor is part of the same thread as the control panel. 
  230. Although these are part of the same thread, they have been set up to also 
  231. appear in the task list. This has the advantage that each edit window can be 
  232. brought to the focus simply by bringing up the task list.  But, this has some 
  233. disadvantages too.  Firstly, EdSndX allows the operator to open more than one 
  234. copy of the same file at a time and multiple new files are simply named 
  235. Untitled. As a result, it is difficult to tell which file is which in the task 
  236. list.  Secondly, the task list provides the ability to close a particular 
  237. window by killing its thread.  Since all edit windows are a member of the same 
  238. common thread, killing any one of them kills the thread and all windows 
  239. associated with it.  By creating a File List, unique numbers are assigned to 
  240. each file that allow the operator to identify the file that is being used. 
  241. These numbers are also by the REXX processor as handles to identify the 
  242. samples. 
  243.  
  244. To give a particular window a focus select the name of the file to receive the 
  245. focus and either select the APPLY button or double click on the entry. If the 
  246. selected window has been minimized, it will be restored upon receiving the 
  247. focus. 
  248.  
  249.  
  250. ΓòÉΓòÉΓòÉ 2.1.2. Resizing the main panel ΓòÉΓòÉΓòÉ
  251.  
  252. In accordance with the recommended Common User Access (CUA) guidelines, the 
  253. main control panel may be resized using the border of the window.  The 
  254. horizontal and vertical proportions of the buttons are always fixed such that 
  255. the overall window proportions will display the buttons properly. When the 
  256. width of the main panel is changed, the height is automatically adjusted to 
  257. maintain the proper shape of the buttons. 
  258.  
  259. Note:  Note.  To resize the window, either the corners or the vertical sides of 
  260.        the window must be used.  The horizontal sides of the window have no 
  261.        effect when used alone. 
  262.  
  263.  
  264. ΓòÉΓòÉΓòÉ 2.1.3. Buttons ΓòÉΓòÉΓòÉ
  265.  
  266. The main control panel provides the user with access to all tools and functions 
  267. through a set of buttons.  Each button contains an icon and a single word which 
  268. describes the function of the button. The buttons have been designed as toggle 
  269. type push buttons.  To select a particular button, click over the desired area 
  270. with the first mouse button.  This will depress the button and activate a 
  271. dialog for the desired function.  The dialogs present information to the user 
  272. about the desired operation and request input from the user to complete the 
  273. operation.  The exception to this operation is the Help, and New buttons 
  274. because they can be used even when an instance of their respective function has 
  275. been created. 
  276.  
  277. The control panel is the main point of control for both activating and 
  278. deactivating a particular function.  The dialog boxes can be removed from the 
  279. screen by positioning the mouse over a depressed button and pressing the first 
  280. mouse button.  The dialog box will be removed and the button will return to the 
  281. non-depressed position. It is important to note that when a dialog box is 
  282. removed through this means, any information in the dialog is ignored and the 
  283. function is canceled.  For each dialog box, the user must enter all of the 
  284. information required and then select the appropriate action on the push buttons 
  285. at the bottom of the dialog box. 
  286.  
  287. Now for the buttons.  There are five buttons on the main control panel.  These 
  288. are listed below with a brief explanation of their function. 
  289.  
  290.                 Opens and reads a new sample file 
  291.                 Opens an empty window for editing 
  292.                 Opens up properties display 
  293.                 Opens the toolbox for performing DSP operations 
  294.                 Starts the help window 
  295.  
  296.  
  297. ΓòÉΓòÉΓòÉ 2.1.3.1. Open ΓòÉΓòÉΓòÉ
  298.  
  299. The dialog box for opening a file and reading the sample into memory is 
  300. accessed from the OPEN button on the main control panel.  When reading in a 
  301. file, PMsndX will attempt to open the file as the type indicated by the 
  302. extension on the filename.  However, in the event that the file cannot be 
  303. loaded by the extension, PMsndX will automatically try to determine the type of 
  304. the file as it reads it based on any header that may be present.  If the sample 
  305. header does not match any of the known header types, PMsndX will refuse to load 
  306. the file unless the format of the file is specified in the OPEN dialog box. 
  307.  
  308. Note:  The formats that are supported by the family of PMsndX programs are 
  309.        listed in the OPEN dialog box.  If PMsndX has not been registered, only 
  310.        the WAV and AU formats will be available. 
  311.  
  312.  The file box allows for multiple selections by using either the CTRL or SHIFT 
  313.  keys in combination with the mouse pointer.  When multiple selections are 
  314.  used, the Full Filename field is updated with the last item selected or 
  315.  deselected.  When the LOAD button is pressed, the selections are all fully 
  316.  qualified and each file starts loading sequentially as if they had been 
  317.  entered on the commandline. 
  318.  
  319.  When loading a file, the user may select to force PMsndX to load a file in a 
  320.  specific format.  This is required to load headerless formats (i.e. the 
  321.  formats marked as RAW).  To override the file format, select one of the 
  322.  formats in the Format pulldown list. 
  323.  
  324.  Note:  If a Format override is specified, the file must still match the given 
  325.         format if it contains a header.  EdSndX will automatically recognize 
  326.         the header format and load it using the correct format. 
  327.  
  328.  The default filename to open is the last file that was successfully opened. 
  329.  The name of the file to be opened may be selected in a number of ways.  The 
  330.  filename may be entered in the Full Filename entry field.  The name may be 
  331.  fully qualified with a drive and directory, or may be any valid filename.  The 
  332.  name will be resolved when passed to the OS/2 IO procedures.  The filename may 
  333.  also be selected by chosing the drive, directory, and name using the 
  334.  corresponding list boxes.  The files to be displayed in the File display are 
  335.  controlled by the File Mask selected. Finally, whenever a file is successfully 
  336.  loaded, it is added to the Full Filename list box.  The previously loaded file 
  337.  names can be displayed by pulling down the list box. 
  338.  
  339.  Note:  The cache of successfully opened files can be saved between sessions by 
  340.         selecting Save file Open paths in the Properties box. 
  341.  
  342.  Once a file has been selected, either double click on the file name or press 
  343.  the Load button.  During the time that the file is being loaded, the user may 
  344.  press the Abort button to stop the loading process. The process for opening a 
  345.  file initiates a new thread for each file name loaded.  As a result, if more 
  346.  than one is being loaded, there is no way to abort the loading of a file once 
  347.  the next file has started loading. Additionally, if the OPEN dialog is 
  348.  dismissed while the loading thread has started, there is no way to abort the 
  349.  load. 
  350.  
  351.  The File Mask list box contains the common filters for extensions that PMsndX 
  352.  recognizes.  This list box can be edited for any mask that the user needs. 
  353.  
  354.  The Format list box contains the common file FORMATS that PMsndX recognizes. 
  355.  Each format identifies the type as well as the extension that PMsndX 
  356.  recognizes.  This list is not editable and is loaded with only those formats 
  357.  that are currently supported.  If PMsndX has not been registered, the listed 
  358.  formats may be considerably less than the total of fully supported formats. 
  359.  
  360.  By default, the OPEN dialog box is automatically dismissed when the file has 
  361.  been loaded.  When multiple files are selected to be loaded, the dialog is 
  362.  dismissed if any one of the selected files is successfully loaded.  If an 
  363.  error occurs during the loading process, the dialog will not automatically 
  364.  dismiss itself.  To disable this feature (i.e. force the dialog box to remain 
  365.  visible even after a file has been loaded) deselect the AUTO Dismiss checkbox 
  366.  in the upper right corner of the window. 
  367.  
  368.  
  369. ΓòÉΓòÉΓòÉ 2.1.3.2. New ΓòÉΓòÉΓòÉ
  370.  
  371. To facilitate creating new sound files (through any input means such as the 
  372. microphone, line input, or the clipboard), an empty edit window can be opened 
  373. by selecting NEW from the control panel.  The initial file name will be 
  374. undefined and the SAVE AS dialog box will automatically be required to save the 
  375. file with a user defined file name. 
  376.  
  377. See Record setup for instructions on recording a sample. 
  378.  
  379.  
  380. ΓòÉΓòÉΓòÉ 2.1.3.3. Properties ΓòÉΓòÉΓòÉ
  381.  
  382.  The properties button on the control panel provides access to the settings for 
  383. options that are stored in the initialization file between sessions.  The 
  384. properties dialog can be accessed from this button or through the system menu. 
  385.  
  386.  
  387. ΓòÉΓòÉΓòÉ 2.1.3.4. Tools ΓòÉΓòÉΓòÉ
  388.  
  389. The toolbox is a means to access special digital processing routines.  The 
  390. toolbox is displayed as a notebook in which each page represents a different 
  391. tool with specific settings that are related to that tool. See Tools for a full 
  392. description of the toolbox and its controls. 
  393.  
  394. The toolbox represents a common resource for any edit window that is open.  As 
  395. such, the toolbox must be associated with a particular edit window before it 
  396. can be used.  When the toolbox is associated with a window, it will display the 
  397. name of the file for the association in the titlebar. See Editor Switch to for 
  398. associating the toolbox with a particular edit window. 
  399.  
  400.  
  401. ΓòÉΓòÉΓòÉ 2.1.3.5. Help ΓòÉΓòÉΓòÉ
  402.  
  403. To start the help viewer for EdSndX, the HELP button may be pressed. 
  404. Additionally, the help may be accessed through the system menu help item. 
  405. Further, help may be accessed from any window by pressing the F1 key. 
  406.  
  407.  
  408. ΓòÉΓòÉΓòÉ 2.1.3.6. Footnote ΓòÉΓòÉΓòÉ
  409.  
  410. The main control panel may optionally display a footnote which provides a short 
  411. description of the current item under the mouse pointer.  This footnote display 
  412. can be turned on or off through the properties dialog box.  Note that when the 
  413. footnote display is turned on or off, the change does not take effect till the 
  414. next time in which EdSndX is executed. 
  415.  
  416.  
  417. ΓòÉΓòÉΓòÉ 2.2. Editor ΓòÉΓòÉΓòÉ
  418.  
  419. The editor is the main point of control for manipulating samples in memory. 
  420. Whenever a sample is loaded into memory, it is displayed in an edit window. 
  421. There can be multiple samples open simultaneously and each has an associated 
  422. window.  Additionally, when a new sample is to be created, an edit window is 
  423. opened for the creation of the data. 
  424.  
  425. The following figure shows all of the fields of an edit window for a sample 
  426. containing two channels. 
  427.  
  428.  
  429. ΓòÉΓòÉΓòÉ 2.2.1. Resizing the editor ΓòÉΓòÉΓòÉ
  430.  
  431. EdSndX has the ability to store the size of the edit window between sessions. 
  432. This feature can be disabled through the properties dialog by checking the Save 
  433. Window positions checkbox.  If this box is cleared, the editor will not save 
  434. its size and will automatically open with a default window size that is 
  435. reasonably sized to display all information. 
  436.  
  437. When resizing the editor, all of the windows of the editor automatically resize 
  438. too.  It is possible to size the editor such that the text of some windows will 
  439. not be adequately sized to hold all information. 
  440.  
  441.  
  442. ΓòÉΓòÉΓòÉ 2.2.2. Mouse Buttons ΓòÉΓòÉΓòÉ
  443.  
  444. IBM has not defined the usage of the mouse buttons in the CUA guidelines. 
  445. EdSndX uses the mouse for selection of fields within the graphical displays and 
  446. for pulling up menus for special operations within the control windows. 
  447.  
  448. Button 1 (Left Mouse Button) is used to edit data in control windows or popup 
  449. menus in the graphical windows by clicking the mouse twice (double clicking). 
  450.  
  451. Button 2 (Right mouse Button) is used to access popup menus for a control 
  452. window or the graphical windows by a single click of the mouse. 
  453.  
  454. Each of the graphical displays provides popup menus which allow the operator to 
  455. select marker positions within the window.  These same markers can be set 
  456. through the menu bar. The control windows also provide special popup menus for 
  457. setting their values and are identical to those found in the menu bar. 
  458.  
  459.  
  460. ΓòÉΓòÉΓòÉ 2.2.3. Titlebar ΓòÉΓòÉΓòÉ
  461.  
  462. The titlebar of the edit window displays the file name of the current sample 
  463. for the window.  This is the same name that appears in the File list on the 
  464. main control panel.  If a file has no filename, the titlebar shows (not named). 
  465. Since multiple copies of the same file can be opened simultaneously, each file 
  466. is displayed with a unique number in all references to the file names.  This 
  467. additional information can be used by the operator to determine which edit 
  468. window is associated with the name in the file list. 
  469.  
  470.  
  471. ΓòÉΓòÉΓòÉ 2.2.4. Regions ΓòÉΓòÉΓòÉ
  472.  
  473. The editor is divided into regions which display information about a particular 
  474. sample.  These regions are menu, info*, full graph, display position, channel 
  475. data, controls, and audio. Each region serves a common function for the editing 
  476. of data as explained below. 
  477.  
  478. Note:  * The info region is optional and may be removed or added using the 
  479.        Display Info. 
  480.  
  481.  menu              Select options and perform operations using the pulldown 
  482.                    menu 
  483.  info*             Display and change information in the header of a sample 
  484.  full graph        Displays the first channel of a sample and provides visual 
  485.                    clues for the selected range within the sample 
  486.  display position  Indicates the viewable regions of the sample and scrolls 
  487.                    within the full graph 
  488.  channel data      Displays one or all channels of a sample 
  489.  controls          Provides display controls and feedback on operations 
  490.  audio             Provides access to MMPM/2 if present 
  491.  
  492.  
  493. ΓòÉΓòÉΓòÉ 2.2.4.1. Menu ΓòÉΓòÉΓòÉ
  494.  
  495. The menu bar is used to access all of the features of the editor. See Menu Bar 
  496. for a complete description of the menu structure. 
  497.  
  498.  
  499. ΓòÉΓòÉΓòÉ 2.2.4.2. Info ΓòÉΓòÉΓòÉ
  500.  
  501. The information display of the editor is optional.  The menu item Display Info 
  502. can be used to change the status of the display of the information area. 
  503.  
  504. The information display contains all of the data needed to save a file in any 
  505. format.  The information region does more than simply display the header 
  506. information for a sample.  It also allows the operator to edit the various 
  507. attributes about a sample.  Many sample formats can save the data in a number 
  508. of different styles but some are limited in their representation.  Changes made 
  509. to the information area may be overridden when a sample is saved to ensure that 
  510. the sample conforms to the particular sample format. The data displayed in the 
  511. editor information region is identical to that of the toolbox Info page with 
  512. the exception that the toolbox information display does not allow the operator 
  513. to edit the information. 
  514.  
  515. The following information is displayed in this region: 
  516.  
  517.  Format            the machine or operating system that the particular format 
  518.                    is native to 
  519.  Type              the format specification for a file 
  520.  Style             the data style of each samplesample 
  521.  Size              the size of each sample 
  522.  Channels          the number of channels contained in the file 
  523.  Rate              the sampling rate used to record and play the samples 
  524.  Samples           the number of samples in the file 
  525.  Order             the ordering of the bytes within each sample 
  526.  Comment           the comment associated with the samples 
  527.  
  528.  
  529. ΓòÉΓòÉΓòÉ 2.2.4.2.1. Format ΓòÉΓòÉΓòÉ
  530.  
  531. For every operating system, the manufacturer seems to choose to create a new 
  532. audio format which is native to the hardware of the machine.  As a side note, 
  533. PMsndX was created because there are so many sample formats in use that there 
  534. was a need to convert samples from one format to another so that they could be 
  535. shared between machines. 
  536.  
  537. The pulldown list for the Format of a file allows the operator to select a 
  538. particular format and automatically change the other fields in the information 
  539. display to reflect any requirements of the selected format.  This is an 
  540. important feature because some sample formats do not support all styles and 
  541. sizes of data.  As an example, if a sample is currently a sun .AU format, when 
  542. it is changed to a OS/2 .WAV file, the style will automatically change to 
  543. Signed. This is because the .WAV format does not support u-law styles.  Also, 
  544. the Sun .AU format is a big-endian format whereas the .WAV format is a 
  545. little-endian format. 
  546.  
  547. The selections in this list are identical to the selections provided by the 
  548. Format toolbox page.  See FORMATS for a description of the formats supported by 
  549. the PMsndX programs.  The significant difference in this field is that it does 
  550. not automatically change the extension of the file to be saved. 
  551.  
  552. The format RAW is a special format which is a file containing raw data without 
  553. a header.  Since a RAW file does not contain the necessary information to load 
  554. it, PMsndX will request that the user provide the necessary information to 
  555. identify the file including the style, size, and order of the samples. 
  556. Additionally, the number of channels may be required for a file.  When the RAW 
  557. format is used, the Type information field will indicate the actual RAW type. 
  558.  
  559.  
  560. ΓòÉΓòÉΓòÉ 2.2.4.2.2. Type ΓòÉΓòÉΓòÉ
  561.  
  562. Every machine and operating system type listed in the Format list box 
  563. correspond to a defined standard format.  Every standard format defines the 
  564. style, size, and order of the data that can be stored in the file.  Some 
  565. formats support multiple styles and sizes and some even support different 
  566. orders.  Changes to this field are automatically reflected in the filename by 
  567. changing the extension of the file to that of the selected type. 
  568.  
  569. The type of file is identified by both a standard name and a file type.  The 
  570. standard name is used to indicate some document or name that a manufacturer has 
  571. chosen for the format.  The file type is listed in parenthesis and identifies 
  572. the extension that the file is normally saved with.  When a file is saved, the 
  573. file extension is used to determine the way that the file is saved or loaded 
  574. unless an override is used in the file dialog box.  This field indicates the 
  575. anticipated data format for each of the file types supported by PMsndX. 
  576.  
  577. The selections in this list are identical to the selections provided by the 
  578. Format toolbox page.  See FORMATS for a description of the formats supported by 
  579. the PMsndX programs. 
  580.  
  581.  
  582. ΓòÉΓòÉΓòÉ 2.2.4.2.3. Style ΓòÉΓòÉΓòÉ
  583.  
  584. The style of a sample indicates the interpretation of the bits in the file 
  585. which is stored on disk.  PMsndX programs support three basic styles including 
  586. Signed, Unsigned, and U-Law 
  587.  
  588. Signed data indicates that the sequence of bits for each sample contains a bit 
  589. in the highest position to indicate that the sample is either positive or 
  590. negative.  As an example, for an eight bit sample format which is signed (in 
  591. which the bits are numbered from left to right from 7 to 0) the bit numbered 7 
  592. is reserved to indicate the sign.  All data is converted to signed data when it 
  593. is stored in memory. 
  594.  
  595. Unsigned data indicates that there is no sign bit in the data.  Consequently, 
  596. the data may only take on positive values.  PMsndX automatically converts all 
  597. unsigned data to signed data as it stores it in memory. 
  598.  
  599. U-Law data indiates that 16 bits of data has been compressed into 8 bits of 
  600. storage space when saved to disk.  This format uses a compression technique 
  601. which is lossy because it does not store the exact samples and the sample 
  602. cannot be exactly recreated from the file once it has been saved. U-Law is one 
  603. of the most popular formats on the internet because the storage space is small 
  604. and the loss in quality is tolerable to the human ear.  U-Law capitolizes on 
  605. the fact that the human ear cannot distinguish frequencies outside of a 
  606. particular range and also cannot easily distinguish between very similar 
  607. frequencies. 
  608.  
  609. Not all sample formats support all styles.  If a sound format is selected which 
  610. does not support a particular style, EdSndX will automatically use the correct 
  611. style required by that format.  To determine if a format supports a particular 
  612. style, change the style first, and then select the particular format.  If the 
  613. format does not support the selected style, the style field will change to the 
  614. supported style. 
  615.  
  616. When a RAW format is loaded into memory, the operator inadvertantly specifies 
  617. the style of the data when the format is specified.  For example, RAW (.sb) 
  618. indicates signed data from the first letter in the extension. 
  619.  
  620.  
  621. ΓòÉΓòÉΓòÉ 2.2.4.2.4. Size ΓòÉΓòÉΓòÉ
  622.  
  623. All data is represented by a series of bits.  A bit is the smallest piece of 
  624. information that the computer can manipulate.  16 bit samples are called WORDS 
  625. and 8 bit samples are called BYTES. The groupings of bits indicate the quality 
  626. of the sample that is stored in memory or in a file.  A larger number of bits 
  627. represents higher quality sound; however, a larger number of bits represents 
  628. more storage space too. PMsndX can deal with samples which are stored in any 
  629. size of up to 16 bits. 
  630.  
  631. The size of a sample is an important factor when playing audio.  Some sound 
  632. adapters do not support 16 bit samples and cannot play such samples.  PMsndX 
  633. can still play these samples in the lower quality 8 bit sample format.  This 
  634. feature can be defeated using the Play 16 bits on 8 bit audio property. 
  635.  
  636. Some sizes are not supported by all formats and in some cases, the style of the 
  637. data is dependent on the size.  As an example, .WAV files which are 16 bits 
  638. must be signed whereas 8 bit samples must be stored as unsigned.  The .hcm 
  639. format only supports 8 bit data.  PMsndX considers the size of a sample to be 
  640. the most imporant factor when converting data between formats in order to 
  641. maintain the same quality of data once saved to disk.  However, if a format 
  642. does not support 16 bit data, PMsndX will automatically change the size to 8 
  643. bits when it saves the file or when the format is changed. 
  644.  
  645. When a RAW format is loaded into memory, the operator inadvertently specifies 
  646. the size of the data by the format selected.  As an example, RAW (.sb) 
  647. indicates that the format is 8 bits because the second letter is b for byte. 
  648.  
  649.  
  650. ΓòÉΓòÉΓòÉ 2.2.4.2.5. Channels ΓòÉΓòÉΓòÉ
  651.  
  652. Many audio formats support more than one channel.  The channels in a sample 
  653. affect the memory requirements of the sample and the display of the data.  For 
  654. this reason, changing the number of channels requires that the data for the 
  655. file be manipulated.  To change the number of channels for a sample, use the 
  656. Avg or Dupe tools. 
  657.  
  658. When a RAW format is loaded into memory, the operator will be required to 
  659. specify the number of channels of the data because RAW formats do not contain 
  660. headers to allow PMsndX to determine the number of channels in the file. 
  661. Additionally, when a raw format is loaded, it is assumed that the channels are 
  662. interleaved in the sample.  There are formats which do not interleave the 
  663. channels and these cannot be loaded without headers. 
  664.  
  665.  
  666. ΓòÉΓòÉΓòÉ 2.2.4.2.6. Rate ΓòÉΓòÉΓòÉ
  667.  
  668. The rate field indicates that rate in samples per second that a sample was 
  669. recorded and stored.  The rate determines how quickly the samples are playbed 
  670. back also.  When the rate of playback is changed, the number of samples stored 
  671. in memory changes and so this field is not editable through the information 
  672. display.  See Rate or Speed for tools to change the rate of a sample. 
  673.  
  674. When a RAW format is loaded into memory, the operator will be required to 
  675. specify the rate of the data that is stored in the file.  This is because there 
  676. is no header in the file to indicate the rate of the data. 
  677.  
  678.  
  679. ΓòÉΓòÉΓòÉ 2.2.4.2.7. Samples ΓòÉΓòÉΓòÉ
  680.  
  681. The number of samples in the file is indicated by both the total number of 
  682. samples and the samples per channel.  When a file is made of a single channel, 
  683. both numbers will be identical.  The length of the file determines the memory 
  684. requirements of the sample.  The length is affected by almost all operations in 
  685. the toolbox. 
  686.  
  687.  
  688. ΓòÉΓòÉΓòÉ 2.2.4.2.8. Order ΓòÉΓòÉΓòÉ
  689.  
  690. Every machine conforms to either BIT ENDIAN or LITTLE ENDIAN.  The order of the 
  691. bits in the sample are important because they determine the sequence of the 
  692. bits in the bytes.  Intel based machines are LITTLE ENDIAN because they reverse 
  693. the order of bytes that make up a sample.  Motorola based processors use BIG 
  694. ENDIAN. The tradeoffs for using BIG and LITTLE endian are minor but are 
  695. significant when reading data from different machines. 
  696.  
  697. When a RAW 16 bit format is loaded into memory, the operator must specify that 
  698. the data is either BIG or LITTLE endian to ensure that the byte order is 
  699. correct.  If a RAW format is loaded and it appears to be randomly garbled, try 
  700. loading it with a different order. 
  701.  
  702.  
  703. ΓòÉΓòÉΓòÉ 2.2.4.2.9. Comment ΓòÉΓòÉΓòÉ
  704.  
  705. Almost all sound formats support the inclusion of a string of text embedded in 
  706. the header of the file.  The comment field of the information display can be 
  707. used to change the comment when it is saved back to disk.  If a file is loaded 
  708. which does not contain a comment or a file is created with PMsndX, the default 
  709. comment of Edited by PMsndX is automatically created. 
  710.  
  711.  
  712. ΓòÉΓòÉΓòÉ 2.2.4.3. Full Graph ΓòÉΓòÉΓòÉ
  713.  
  714. One of the biggest problems with editing audio samples is the quantity of data 
  715. that even the smallest audio sample contains.  As an example, one second of 
  716. audio for a single channel at 11025 Hz contains over 10,000 samples of data. 
  717. When editing a sample, the actual position of the operations that are being 
  718. performed need a reference display to indicate a relative position within the 
  719. total sample. EdSndX provides this in the form of the Full Graph region.  This 
  720. graph displays the first channel of the sample along with the current audio 
  721. playback position, start of a range, and end of a range.  This display in 
  722. combination with the Horizontal Position bar below it provides enough 
  723. information to determine where the channel displays are within the scope of the 
  724. entire sample. 
  725.  
  726. The full display is the primary point of reference for all editing operations. 
  727. The current playback position, the range, and even the level of zoom can be 
  728. affected by the full display. 
  729.  
  730. The full display can be used to set the range of operation for the tools and 
  731. for the audio playback using the second mouse button to select either Start or 
  732. End in the full display.  By default, when a sample is loaded, the entire 
  733. sample is selected as indicated by the entire sample being displayed in the 
  734. light yellow color. 
  735.  
  736. The full display can be used to set the PLAY position within the sample by 
  737. moving the mouse to the desired position and pressing the second mouse button. 
  738. This brings up a popup menu in which the operator may select Play Position. The 
  739. PLAY control window will be updated with the new play back position and a 
  740. vertical bar will be displayed.  During audio playback, this bar will move 
  741. across the display to provide a rough indicator of the current position of 
  742. playback within the sample. 
  743.  
  744.  
  745. ΓòÉΓòÉΓòÉ 2.2.4.4. Horizontal Position ΓòÉΓòÉΓòÉ
  746.  
  747. The Horizontal Position bar is directly below the full display graph and is 
  748. used to indicate the portion of the display which is viewable in the lower 
  749. channel displays. This bar operates much like a conventional scroll bar with 
  750. the exception that the range of the display is indicated by a simple line with 
  751. markers on the ends. 
  752.  
  753. As indicated in the following figure, the width of the line for the horizonatal 
  754. position changes depending on the level of Zoom that has been selected. 
  755.  
  756. When a zoom level other than MIN has been set, the horizonatal position can be 
  757. moved by either dragging the display to the position that is desired or by 
  758. clicking on either the buttons at the end of the display or by clicking on the 
  759. region to the left and right of the bar.  When the buttons are clicked, the 
  760. display moves 1/20 the width of the channel graph in the direction of the 
  761. button.  When the area to the left or right of the bar is selected, the display 
  762. moves 1/2 the width of the channel graph in the direction of the side selected. 
  763.  
  764.  
  765. ΓòÉΓòÉΓòÉ 2.2.4.5. Channel Graph ΓòÉΓòÉΓòÉ
  766.  
  767. EdSndX has the capability to display and edit either a single channel at a time 
  768. or all channels at once.  The following diagram shows the channel display when 
  769. a single channel is displayed. 
  770.  
  771. When displaying a single channel of a sample, a vertical scroll bar appears to 
  772. the right of the display if the sample has more than one channel.  This scroll 
  773. bar is used to move between the individual channels.  When using the tools and 
  774. the checkbox for the selected channel is checked, the displayed channel in the 
  775. editor is the one that will be affected. 
  776.  
  777. The following diagram shows the channel display when all channels are 
  778. displayed. 
  779.  
  780. Notice that when this mode is set, all the channels of the smaple are displayed 
  781. in the same space that a single channel was displayed an the vertical scroll 
  782. bar is removed.  When in this mode, all tool operations will occur on all 
  783. channels of the sample. 
  784.  
  785. The mode of operation to be used is stored in the .ini between each session. 
  786. Changes in mode are seen immediately. The channel display can be used in the 
  787. same way that the full display is used for selecting the play position and 
  788. range.  The area of the data displayed is indicated by the horizontal position 
  789. indicator below the full display.  The viewing region is indicated by the width 
  790. and position of the bar. 
  791.  
  792.  
  793. ΓòÉΓòÉΓòÉ 2.2.4.6. Controls ΓòÉΓòÉΓòÉ
  794.  
  795. EdSndX provides a control area where the status of the various regions are 
  796. displayed.  This area also provides a means to edit the information by either 
  797. double clicking on the entry with the first mouse button or by bringing up a 
  798. menu with the second mouse button.  The following fields are used to manipulate 
  799. the display. 
  800.  
  801.  Start             Indicates/sets the start of the selected range 
  802.  End               Indicates/sets the end of the selected range 
  803.  Play              Indicates/sets the position to start playback and the mode 
  804.                    of playback operations 
  805.  Zoom              Indicates/sets the current zoom level and mode of operation 
  806.  Cursor            Indicates the current cursor position over the window and 
  807.                    sets starting point for the channel display 
  808.  Footnote          Displays a short string of text for the window under the 
  809.                    cursor 
  810.  Percent           Displays the progress of the current operation 
  811.  
  812.  
  813. ΓòÉΓòÉΓòÉ 2.2.4.6.1. Start ΓòÉΓòÉΓòÉ
  814.  
  815. The start window is used to display and set the start of the selected range. 
  816. When in the display mode, the start window displays the current start of the 
  817. selected range in either index or time format. 
  818.  
  819. Double clicking the mouse on the window changes it to edit mode in which the 
  820. operator may enter the exact starting position.  Note that the information 
  821. entered must be in the same format as it was displayed.  If the value is 
  822. outside the range of the samples, the value will automatically be changed to 
  823. the nearest valid value. 
  824.  
  825. Clicking on the window with the second mouse button pulls up a popup menu that 
  826. allows the user to select either Set..., Start, or Playpos. Selecting Set... is 
  827. the same as double clicking on the window which allows the field to be edited. 
  828. Selecting Start sets the start of the range to the beginning of the sample 
  829. (i.e. index 0 or time 0:0.0000). Selecting Playpos sets the start of the range 
  830. to the current play position (indicated by the PLAY window). 
  831.  
  832.  
  833. ΓòÉΓòÉΓòÉ 2.2.4.6.2. End ΓòÉΓòÉΓòÉ
  834.  
  835. The end window is used to display and set the end of the selected range.  When 
  836. in the display mode, the end window displays the current end of the selected 
  837. range in either index or time format. 
  838.  
  839. Double clicking the mouse on the window changes it to edit mode in which the 
  840. operator may enter the exact ending position.  Note that the information 
  841. entered must be in the same format as it was displayed.  If the value is 
  842. outside the range of the samples, the value will automatically be changed to 
  843. the nearest valid value. 
  844.  
  845. Clicking on the window with the second mouse button pulls up a popup menu that 
  846. allows the user to select either Set..., End, or Playpos Selecting Set... is 
  847. the same as double clicking on the window which allows the field to be edited. 
  848. Selecting End sets the end of the range to the end of the sample.  Selecting 
  849. Playpos sets the end of the range to the current play position (indicated by 
  850. the PLAY window). 
  851.  
  852.  
  853. ΓòÉΓòÉΓòÉ 2.2.4.6.3. Play ΓòÉΓòÉΓòÉ
  854.  
  855. The PLAY window is used to display and set the current play position or the 
  856. mode of operation.  When in the display mode, the current audio playback 
  857. position is displayed in either index or time format.  During playback through 
  858. the audio device, the PLAY window is updated to reflect the current position of 
  859. the playback.  Updates from the audio device occur about once every quarter of 
  860. a second to limit the overhead in displaying the position indicator in the 
  861. graphical windows. During playback, the graphical indicator for the play 
  862. position is only updated in the full display to limit system CPU requirements 
  863. as a result of updating the displays. 
  864.  
  865. Double clicking the mouse on the window changes it to edit mode in  which the 
  866. operator may enter the exact position for audio playback to start.  Note that 
  867. the information entered must be in the same format as it is displayed.  If the 
  868. value is outside the range of the samples, the value will automatically be 
  869. changed to the nearest valid value. 
  870.  
  871. Clicking on the window with the second mouse button pulls up a popup menu that 
  872. allows the user to select either Set..., Start, End, or Mode.  Selecting Set... 
  873. is the same as double clicking on the window which allows the field to be 
  874. edited.  Selecting Start sets the current playback position to the start of the 
  875. range.  Selecting End sets the current playback position to the end of the 
  876. range.  The mode item is used to select the mode of playback. 
  877.  
  878.  
  879. ΓòÉΓòÉΓòÉ 2.2.4.6.3.1. Play mode ΓòÉΓòÉΓòÉ
  880.  
  881. Selecting Mode allows the playback mode to be set to either Range or Playpos. 
  882. Setting the Play mode to Range causes playback to start at the beginning of the 
  883. selected range and automatically rewinds to that position whenever playback 
  884. stops.  Setting the Play mode to Play pos causes playback to start wherever the 
  885. current playpos marker is set and does not automatically rewind when playback 
  886. stops. 
  887.  
  888.  
  889. ΓòÉΓòÉΓòÉ 2.2.4.6.4. Zoom ΓòÉΓòÉΓòÉ
  890.  
  891. The zoom window is used to display and set the current zoom level.  When in the 
  892. display mode, the zoom window displays the current zoom level in the form of 
  893. 1/zoom.  By default the zoom level is initially set to be the minimum zoom such 
  894. that the entire sample can be displayed in the channel display.  The zoom is 
  895. unique to the other controls in that it operates in modes which affect the way 
  896. the zoom is handled when the edit window is resized. 
  897.  
  898. Double clicking the mouse on the window changes it to the edit mode in which 
  899. the operator may enter the exact zoom. Note that the information must be 
  900. entered in the same format as it is displayed.  If the value is outside the 
  901. range of valid values, the value will automatically be changed to the nearest 
  902. valid value. 
  903.  
  904. Clicking on the window with the second mouse button pulls up a popup menu that 
  905. allows the user to select either Set..., Range, Min, or Max. 
  906.  
  907. Selecting Set... is the same as double clicking on the window which allows the 
  908. field to be edited.  When the zoom level is set by editing the zoom value 
  909. directly, the set level remains fixed when the edit window is resized unless 
  910. the set zoom will result in a value which is outside the range of zoom values 
  911. for the sample. 
  912.  
  913. Selecting Range sets the zoom level to the nearest integer which will display 
  914. the entire selected range in the channel display.  When the zoom level is set 
  915. to range mode, the current zoom changes whenever the window is resized or when 
  916. a new range is selected.  The object of this mode is to maintain the current 
  917. zoom value such that the range can fit within the channel display.  Note that 
  918. even though the window will maintain the correct zoom for the entire selected 
  919. range to fit within the window, the starting position of the left side of the 
  920. channel display will not be adjusted to keep the range actually displayed in 
  921. the channel display.  This allows the current viewing area to remain unchanged 
  922. after resizing. 
  923.  
  924. Selecting Min sets the zoom level to the nearest integer which will display all 
  925. samples in the channel display.  When the zoom level is set to the min mode, 
  926. the zoom level is adjusted to ensure that all samples are displayed in the 
  927. channel display after the window is resized. 
  928.  
  929. Selecting Max sets the zoom level to 1/1 which displays each sample exactly one 
  930. screen unit wide.  This zoom level is not affected by resize operations. 
  931.  
  932.  
  933. ΓòÉΓòÉΓòÉ 2.2.4.6.5. Cursor ΓòÉΓòÉΓòÉ
  934.  
  935. The cursor window is used to display the current position of the mouse cursor 
  936. as it moves across the data windows.  The cursor window is also used to set the 
  937. beginning of the channel display.  When in the display mode, the cursor 
  938. displays the current mouse position in either index or time format. 
  939.  
  940. Double clicking the mouse on the window changes it to edit mode in which the 
  941. operator may enter the exact starting position of the channel display.  Note 
  942. that the information entered must be in the same format as it is displayed.  If 
  943. the value entered is not valid for the display zoom level, it is automatically 
  944. adjusted to the nearest valid value. 
  945.  
  946. Clicking on the window with the second mouse button pulls up a popup menu that 
  947. allows the user to select either Set..., Start, End, or Play.  Selecting Set... 
  948. is the same as double clicking on the window which allows the field to be 
  949. edited.  Selecting start sets the left edge of the channel display to the 
  950. current start of the selected range. Selecting end sets the right edge of the 
  951. channel display to the current end of the selected range. Selecting play sets 
  952. the left edge of the channel display to the current play position. 
  953.  
  954.  
  955. ΓòÉΓòÉΓòÉ 2.2.4.6.6. Footnote ΓòÉΓòÉΓòÉ
  956.  
  957. The edit window has a small window which displays a short message indicating 
  958. something about the window directly under the cursor.  One of the particular 
  959. uses of this window is to monitor which channel is currently displayed when the 
  960. editor is set to display a single channel at a time.  The footnote window is a 
  961. permanent part of the edit window and is not affected by the footnote 
  962. properties settings for the main control panel. 
  963.  
  964.  
  965. ΓòÉΓòÉΓòÉ 2.2.4.6.7. Progress ΓòÉΓòÉΓòÉ
  966.  
  967. Any operation which launches a thread to perform the operation will provide 
  968. feedback to the operator to indicate the percentage of work that has been 
  969. completed through the progress window.  This window is composed of a colored 
  970. bar that moves to the right as the percentage increases. The window also 
  971. displays the numeric percentage in the middle of the windows.  Every edit 
  972. window has a percentage indicator which allows each editor to provide 
  973. indicators for operations which are associated with a single sample. This 
  974. iherently implies that the toolbox can launch threads for each editor 
  975. independently and simultaneously. 
  976.  
  977. Note:  Some operations (e.g. the echo effect) launch multiple threads in series 
  978.        which cause the percentage indicator to seem to cycle. 
  979.  
  980.  
  981. ΓòÉΓòÉΓòÉ 2.2.4.7. Audio ΓòÉΓòÉΓòÉ
  982.  
  983. The audio region of the edit window is used to control access to the AUDIO 
  984. device.  Only one edit window can play or record audio and so all edit windows 
  985. are linked together such that when one is active, the others are disabled.  The 
  986. volume is the exception in that it is accessible at all times regardless of 
  987. whether the edit window is editing or not. 
  988.  
  989. The following buttons are used: 
  990.  
  991.  Record            Starts audio recording 
  992.  Stop              Stops audio operations 
  993.  Play              Starts audio playback 
  994.  Rewind            Rewinds audio position indicator 
  995.  Volume            Sets the volume for playback 
  996.  
  997.  
  998. ΓòÉΓòÉΓòÉ 2.2.4.7.1. Record ΓòÉΓòÉΓòÉ
  999.  
  1000. The record button is used to start recording a sample.  The record button is 
  1001. disabled until the settings for the recording have been established using the 
  1002. Record Setup menu item.  After setting up the parameters, recording can start 
  1003. immediately after the record button is pressed.  During the process of 
  1004. recording, the operator may press the stop button at which point the recording 
  1005. will stop and the new data will be displayed.  If the operator does not press 
  1006. stop, the recording will continue until the set limit is reached. 
  1007.  
  1008. Since the audio device is shared between all edit windows, when one is 
  1009. recording, all buttons on the other windows are disabled. 
  1010.  
  1011.  
  1012. ΓòÉΓòÉΓòÉ 2.2.4.7.2. Stop ΓòÉΓòÉΓòÉ
  1013.  
  1014. When audio playback or recording is active, the stop button for the edit window 
  1015. which currently has access to the audio device is enabled.  This button allows 
  1016. the operator to terminate the current audio operation.  If the editor is 
  1017. playing the current sample, the play position indicator will remain at the last 
  1018. sample played.  If the play mode is currently set for playpos playback will 
  1019. continue where it left off if the play button is pressed. 
  1020.  
  1021.  
  1022. ΓòÉΓòÉΓòÉ 2.2.4.7.3. Play ΓòÉΓòÉΓòÉ
  1023.  
  1024. The play button is used to start playback of the current sample from memory. 
  1025. when this button is pressed, the start of the playback depends on the current 
  1026. mode for playback.  When in the range mode, playback will automatically start 
  1027. at the beginning of the current selected range regardless of the Play 
  1028. indicator.  When in playpos mode, playback will automatically start at the 
  1029. current position indicated by the PLAY window. 
  1030.  
  1031. There is no pause button because the playback can be set to start where it left 
  1032. off by setting the mode to playpos.  The range mode is designed for use when a 
  1033. particular area is being edited and the operator wants to play a particular 
  1034. range over a number of times without having to stop the playback with the stop 
  1035. button.  Additionally, either mode can be useful when the playback is set to 
  1036. automatically repeat repeat. 
  1037.  
  1038. The play button also serves to provide an indication as to the status of the 
  1039. audio buffers.  Whenever a sample is changed, the editor may start loading the 
  1040. audio buffers immediately depending on the setting of the Delay AUDIO Loading. 
  1041. When the task for loading the buffers is operating, the word Loading will be 
  1042. displayed at the bottom of the button and the button will be disabled.  Once 
  1043. the buffers have been loaded, the button will be enabled if the audio device is 
  1044. not in use by another edit window. 
  1045.  
  1046.  
  1047. ΓòÉΓòÉΓòÉ 2.2.4.7.4. Rewind ΓòÉΓòÉΓòÉ
  1048.  
  1049. When the rewind button is pressed, the PLAY window is reset to the either the 
  1050. beginning of the selected range or to the beginning of the sample depending on 
  1051. the current mode of playback.  If the current PLAY position is already at the 
  1052. beginning of the range or sample, the rewind button is disabled. 
  1053.  
  1054.  
  1055. ΓòÉΓòÉΓòÉ 2.2.4.7.5. Volume ΓòÉΓòÉΓòÉ
  1056.  
  1057. Of the audio controls on the edit window, the volume display is the only one 
  1058. that is active at all times.  The audio display is shared across all edit 
  1059. windows simultaneously such that changes in one window are reflected in all 
  1060. open windows.  The volume control is a sliding bar which sets the volume to a 
  1061. percentage of the maximum volume for the audio card.  This volume is different 
  1062. from the volume effect in the toolbox in that it does not affect the actual 
  1063. samples; rather, it affects the audio device. 
  1064.  
  1065. The volume control is similar to a standard slider except that it does not have 
  1066. an associated button.  Rather, it is like an analog volume control such that 
  1067. the slider moves to the right and left using the mouse and the width of the 
  1068. slider indicates the volume.  Additionally, the actual percentage of the volume 
  1069. is indicated in the display for convenience. 
  1070.  
  1071. The slider may be moved using the mouse button or the normal keys associated 
  1072. with scroll bars.  By selecting the area near the edge of the sliding portion 
  1073. of the control, the slider can be captured and the mouse can be used to drag 
  1074. the volume to the desired position.  If playback is occurring, the effect is 
  1075. immediately heard.  The area to the left or right of the slider edge may also 
  1076. be selected with the first mouse button to move the slider one percent up or 
  1077. down depending on the position that is selected.  Holding the mouse down causes 
  1078. the slider to increase at a rate of about 1 percent per tenth of a second. 
  1079. Finally, the second mouse button may be used to move the slider to a specific 
  1080. position quickly. 
  1081.  
  1082.  
  1083. ΓòÉΓòÉΓòÉ 2.2.5. Menu Bar ΓòÉΓòÉΓòÉ
  1084.  
  1085. All of the functions of the editor are accessible through the menu bar.  Popup 
  1086. menus for various windows are duplicates of entries from the main menu bar.  As 
  1087. a result, menus which are checked in the popup menus are reflected in the main 
  1088. menu bar. 
  1089.  
  1090.  
  1091. ΓòÉΓòÉΓòÉ 2.2.5.1. File ΓòÉΓòÉΓòÉ
  1092.  
  1093. The File menu is used to access functions which will result in IO operations 
  1094. such as disk access, printing, or recording.  The following items are 
  1095. accessible from this menu: 
  1096.  
  1097.  New               Displays a list of open files and switches focus 
  1098.  New               Creates a new (empth) edit window 
  1099.  Open              Opens a file for editing in another edit window 
  1100.  Save              Saves the current data to disk using the current filename 
  1101.  Save As           Saves the current data to disk using a different filename 
  1102.  Print             Prints information about the sample to a printer 
  1103.  Print Setup       Sets up the format of the data to be printed 
  1104.  Record setup      Sets up parameters required to record data from the audio 
  1105.                    device 
  1106.  
  1107.  
  1108. ΓòÉΓòÉΓòÉ 2.2.5.1.1. File List ΓòÉΓòÉΓòÉ
  1109.  
  1110. From every edit window, a list open files can be found under the File List menu 
  1111. item.  Selecting any of the files in the list switches the focus to that editor 
  1112. window. This list of files performs the same functions as the list from the 
  1113. main control panel's system menu. 
  1114.  
  1115.  
  1116. ΓòÉΓòÉΓòÉ 2.2.5.1.2. New ΓòÉΓòÉΓòÉ
  1117.  
  1118. The New menu item can be used to create a new sample editing window.  This has 
  1119. the same effect as pressing the New button on the control panel. 
  1120.  
  1121.  
  1122. ΓòÉΓòÉΓòÉ 2.2.5.1.3. Open ΓòÉΓòÉΓòÉ
  1123.  
  1124. The Open menu item can be used to open an existing file for editing.  This has 
  1125. the same effect as pressing the Open button on the control panel. 
  1126.  
  1127.  
  1128. ΓòÉΓòÉΓòÉ 2.2.5.1.4. Save ΓòÉΓòÉΓòÉ
  1129.  
  1130. Once a file has been edited, it can be saved to disk for permanent storage.  If 
  1131. the file has already been named, its name will appear in the titlebar of the 
  1132. editor and will automatically be saved as that name.  If the file has not been 
  1133. named yet, the Save As... dialog box will automatically be used to save the 
  1134. file to force the operator to name the file. 
  1135.  
  1136.  
  1137. ΓòÉΓòÉΓòÉ 2.2.5.1.5. Save As.. ΓòÉΓòÉΓòÉ
  1138.  
  1139. The following diagram illustrates the Save As... dialog. 
  1140.  
  1141. The Save As... menu item is used to save a file to a different file name than 
  1142. is displayed in the titlebar of the edit window.  The Save As... menu item can 
  1143. also be used to change the type of the file to be saved using the FORMAT field 
  1144. of the dialog. 
  1145.  
  1146. The Save As... dialog is identical to the Open dialog with the exception that 
  1147. it is associated with a particular edit window and multiple copies of the Save 
  1148. As... dialog can be displayed at the same time. 
  1149.  
  1150.  
  1151. ΓòÉΓòÉΓòÉ 2.2.5.1.6. Print ΓòÉΓòÉΓòÉ
  1152.  
  1153. Not implemented in this revision. 
  1154.  
  1155.  
  1156. ΓòÉΓòÉΓòÉ 2.2.5.1.7. Print Setup ΓòÉΓòÉΓòÉ
  1157.  
  1158. Not implemented in this revision. 
  1159.  
  1160.  
  1161. ΓòÉΓòÉΓòÉ 2.2.5.1.8. Record Setup ΓòÉΓòÉΓòÉ
  1162.  
  1163. In order to record a sample from the audio device, the parameters for the 
  1164. recording must be set up.  The following illustration shows the dialog that is 
  1165. used to set up a recording. 
  1166.  
  1167. This dialog box is used to set the recording parameters for the AUDIO group of 
  1168. EdSndX.  Changes made to this dialog are saved between sessions but it is 
  1169. necessary to open this dialog to set up the parameters for the recording for 
  1170. each individual edit window.  When the Record Options dialog is opened, EdSndX 
  1171. tests the audio adapter and only enables the features which are supported by 
  1172. the adapter. 
  1173.  
  1174. EdSndX records all audio directly to memory; consequently, the most important 
  1175. control for recording is the limit to the amount of memory in which the data is 
  1176. stored.  The limit on the memory requirements for recording audio is displayed 
  1177. and changed in three different ways.  The first is to specify the amount of 
  1178. time for recording, the second is to specify the number of samples, and the 
  1179. third is to specify the amount of memory.  Changes to each of the entry fields 
  1180. automatically updates the other fields when the focus is changed.  The limit is 
  1181. stored internally as the number of samples to be recorded.  For this reason, 
  1182. changes to the rate, quality, and channels affects the time and memory 
  1183. requirements to record the sample.  These options should be set before 
  1184. establishing the limits. 
  1185.  
  1186. Note:  The memory limit field specifies the amount of raw memory required to 
  1187.        hold the recorded data and is synonymous with the amount of data that 
  1188.        would be stored in a .WAV file. This limit should not be confused with 
  1189.        the internal memory requirements of PMsndX. After the recording has been 
  1190.        made, the data will be converted to the internal format. 
  1191.  
  1192.  The selections made in the Record Options dialog must be applied before the 
  1193.  dialog is dismissed.  Otherwise, the recording options automatically revert to 
  1194.  whatever was last applied.  When the Record Options  dialog is dismissed the 
  1195.  necessary memory is allocated and the editor is set up to prepare for 
  1196.  recording. If the Undo property box has been enabled the previous sample may 
  1197.  be restored using the Undo menu item. 
  1198.  
  1199.  Note:  The CD selection is disabled in this version.  Reading an AUDIO CD is 
  1200.         more complicated than the normal input ports. I have not figured out 
  1201.         how to make the MCI_AMP_SET_MONITOR work on my SB16.  Setting or 
  1202.         clearing Monitor Input has no effect on my system.  If it does 
  1203.         something for you, then let me know.  I know what it is suppose to do. 
  1204.  
  1205.  
  1206. ΓòÉΓòÉΓòÉ 2.2.5.2. Edit ΓòÉΓòÉΓòÉ
  1207.  
  1208. The items under the Edit menu are used to cut and paste samples using the 
  1209. clipboard and for performing functions normally necessary to prepare a sample 
  1210. for editing.  The following items are available through the Edit menu: 
  1211.  
  1212.  Undo              Undo the last operation 
  1213.  Cut               Cut the current selection to the clipboard 
  1214.  Copy              Copy the current selection to the clipboard 
  1215.  Merge             Merge data from the clipboard into the current sample 
  1216.  Merge from        Merge data from another edit window into the current sample 
  1217.  Paste             Paste data from the clipboard into the current sample 
  1218.  Paste from        Paste data from another edit window into the current sample 
  1219.  Clear clipboard   Clear the clipboard 
  1220.  Select all        Select all data in the current sample 
  1221.  Zero region       Set all data in the selected range to zero 
  1222.  Remove region     Deletes the data in the current range from the sample 
  1223.  
  1224.  
  1225. ΓòÉΓòÉΓòÉ 2.2.5.2.1. Undo ΓòÉΓòÉΓòÉ
  1226.  
  1227. If the Undo property is checked, any changes to a sample are buffered such that 
  1228. any single change can be undone.  This feature is only available when the 
  1229. program has been registered. 
  1230.  
  1231. The Undo feature maintains a buffer for exactly one change such that if the 
  1232. Undo menu is selected twice in a row, the net effect is to leave the editor 
  1233. unchanged because the second use of the Undo is essentially the same as the 
  1234. redo.  In actuality, all the Undo does is to swap the previous buffer with the 
  1235. present buffer. 
  1236.  
  1237.  
  1238. ΓòÉΓòÉΓòÉ 2.2.5.2.2. Cut ΓòÉΓòÉΓòÉ
  1239.  
  1240. Rules for cut: 
  1241.  
  1242. The CUT feature is used to cut data out of the current sample and place it on 
  1243. the clipboard.  When this operation is performed, the new data replaces any 
  1244. data that already exists on the clipboard.  The CUT operation adheres to two 
  1245. rules. 
  1246.  
  1247. 1.  If all channels are displayed, then copy all of the data over the specified 
  1248. interval and shift all data over to the left. 
  1249.  
  1250. 2.  If a single channel is displayed, then copy the data over the specified 
  1251. interval for that single channel to the clipboard, and shift the data after the 
  1252. interval over to the left while clearing the end of the data for the specified 
  1253. channel. 
  1254.  
  1255.  
  1256. ΓòÉΓòÉΓòÉ 2.2.5.2.3. Copy ΓòÉΓòÉΓòÉ
  1257.  
  1258. The Copy operation copies all of the data selected in a range to the clipboard 
  1259. in a format which is compatible with the Digital Audio Tool distributed with 
  1260. the OS/2 operating system. 
  1261.  
  1262. The copy operation copies the currently displayed range and channels to the 
  1263. clipboard so the operator must be careful to display either the correct channel 
  1264. or all channels before selecting the copy operation. 
  1265.  
  1266. Note:  When PMsndX is not registered, ranges cannot be used for the copy 
  1267.        operation. 
  1268.  
  1269.  
  1270. ΓòÉΓòÉΓòÉ 2.2.5.2.4. Merge ΓòÉΓòÉΓòÉ
  1271.  
  1272. When the MERGE button is pushed, the editor will merge the data from the 
  1273. clipboard with the data in memory. 
  1274.  
  1275. The merge operation varies depending on the number of channels in the current 
  1276. sample and the number of samples in the data on the clipboard. After the merge 
  1277. operation, the start marker will remain unchanged. 
  1278.  
  1279. 1.  If there is no current data, then just copy the clipboard directly to 
  1280. memory. 
  1281.  
  1282. 2.  If the number of merged channels is the same as the current data, then 
  1283. merge the data in based on the selected channel for manipulation. 
  1284.  
  1285. Note:  When merging, the data is averaged based on the selected channel for 
  1286.        manipulation.  Any excess difference between the length of the two will 
  1287.        be left unafffected.
  1288.  
  1289.  3.  If the number of merged channels is 1, then average the data from the 
  1290.  clipboard to the channel(s) selected for manipulation.  If the length of the 
  1291.  samples does not match the data will be averaged for the common length of the 
  1292.  two and excess will not be modified. 
  1293.  
  1294.  4.  If the number of merged channels is less than the current number of 
  1295.  channels (but greater than 1), then 
  1296.  
  1297.  a) average the data from the clipboard directly into the current sample and 
  1298.  leave the non-existent channels unaffected. 
  1299.  
  1300.  b) average the first channel from the clipboard with the selected channel for 
  1301.  manipulation. 
  1302.  
  1303.  5.  If the merged sample has more channels than the current sample, then 
  1304.  
  1305.  a) average the existing channels and copy the clipboard data directly to the 
  1306.  channels that did not exist in memory. 
  1307.  
  1308.  b) the first channel is merged into the selected channel for manipulation. 
  1309.  
  1310.  6.  If all of this fails, then just warn the user and give up. 
  1311.  
  1312.  
  1313. ΓòÉΓòÉΓòÉ 2.2.5.2.5. Merge From ΓòÉΓòÉΓòÉ
  1314.  
  1315. When more than one edit window is open, EdSndX provides the capability to merge 
  1316. data from one editor to another without going through the clipboard.  The Merge 
  1317. From menu item is only activated when more than one edit window is open and the 
  1318. submenu is filled with the filenames of the other edit windows in the same 
  1319. format as that used in the File List accessed from the main menu. 
  1320.  
  1321. When merging from another edit window, the same rules apply as do for the 
  1322. clipboard merge operations as if the range selected were copied to the 
  1323. clipboard.  The advantage of merging between edit windows without using the 
  1324. clipboard is that it is faster and does not require the creation of temporary 
  1325. buffers. 
  1326.  
  1327. Note:  If PMsndX is not registered, the merge from function does not recognize 
  1328.        the range selected and will always copy all samples and channels as if 
  1329.        the enter sample were copied to the clipboard. 
  1330.  
  1331.  
  1332. ΓòÉΓòÉΓòÉ 2.2.5.2.6. Paste ΓòÉΓòÉΓòÉ
  1333.  
  1334. Rules for paste: 
  1335.  
  1336. The PASTE button is used the paste the contents of the clipboard into memory. 
  1337.  
  1338. The paste operation varies depending on the number of channels in the current 
  1339. sample and the number of samples in the data on the clipboard. After the paste 
  1340. operation, the start marker will be set at the beginning of the sample pasted 
  1341. from the clipboard and the end marker will be set to the end of the new data. 
  1342.  
  1343. 1.  If there is no current data, then just copy the clipboard directly to 
  1344. memory. 
  1345.  
  1346. 2.  If the number of pasted channels is the same as the current data, then past 
  1347. the data in based on the selected channel for manipulation. 
  1348.  
  1349. 3.  If the number of pasted channels is 1, then just copy the data to the 
  1350. channel(s) selected for manipulation and insert blank space for the 
  1351. corresponding channels which are not being manipulated.  If the number of 
  1352. channels for manipulation is "ALL" then duplicate the data for the single 
  1353. channel across all channels of the current data. 
  1354.  
  1355. 4.  If the number of pasted channels is less than the current number of 
  1356. channels (but greater than 1), then 
  1357.  
  1358. a) if the channels selected for manipulation is set to "ALL" then copy the 
  1359. channels from the clipboard directly into the current sample and zero out the 
  1360. non-existent channels. 
  1361.  
  1362. b) copy the first channel from the pasted sample into the selected channel for 
  1363. manipulation. 
  1364.  
  1365. 5.  If the pasted sample has more channels than the current sample, then 
  1366.  
  1367. a) if the channels selected for manipulation is set to "ALL" then create the 
  1368. new channels in the existing data and set all non-existent channels in the 
  1369. existing data to zero. 
  1370.  
  1371. b) copy the first channel from the pasted sample into the selected channel for 
  1372. manipulation. 
  1373.  
  1374. 6.  If all of this fails, then just warn the user and give up. 
  1375.  
  1376.  
  1377. ΓòÉΓòÉΓòÉ 2.2.5.2.7. Paste From ΓòÉΓòÉΓòÉ
  1378.  
  1379. When more than one edit window is open, EdSndX provides the capability to paste 
  1380. data from one editor to another without going through the clipboard.  The Paste 
  1381. From menu item is only activated when more than one edit window is open and the 
  1382. submenu is filled with the filenames of the other edit windows in the same 
  1383. format as that used in the File List accessed from the main menu. 
  1384.  
  1385. When pasting from another edit window, the same rules apply as do for the 
  1386. clipboard paste operations as if the range that is currently selected were 
  1387. copied to the clipboard. The advantage of pasting between edit windows without 
  1388. using the clipboard is that it is faster and does not require the creation of 
  1389. temporary buffers. 
  1390.  
  1391. Note:  If PMsndX is not registered, the paste from function does not recognize 
  1392.        the range selected and will always copy all samples and channels as if 
  1393.        the enter sample were copied to the clipboard. 
  1394.  
  1395.  
  1396. ΓòÉΓòÉΓòÉ 2.2.5.2.8. Clear Clipboard ΓòÉΓòÉΓòÉ
  1397.  
  1398. The Clear Clipboard function is provided to reduce the memory requirements 
  1399. during the process of editing.  When data is copied to the clipboard, it is 
  1400. allocated by an application and then passed to the clipboard system of OS/2. 
  1401. As long as the data remains on the clipboard, the memory is reserved and 
  1402. unusable to other applications.  Freeing this memory reduces the impact on the 
  1403. overall memory resources for the system. 
  1404.  
  1405. Rules for Clear operation: 
  1406.  
  1407. This operation clears all data from the clipboard.  It has no effect on data 
  1408. currently in memory. 
  1409.  
  1410.  
  1411. ΓòÉΓòÉΓòÉ 2.2.5.2.9. Select All ΓòÉΓòÉΓòÉ
  1412.  
  1413. Use this menu item to select the entire sample such that the start of the range 
  1414. of selection is set to 0 and the end of the range is set to the end of the 
  1415. sample. 
  1416.  
  1417.  
  1418. ΓòÉΓòÉΓòÉ 2.2.5.2.10. Zero Region ΓòÉΓòÉΓòÉ
  1419.  
  1420. Rules for Zero operation: 
  1421.  
  1422. Set the data over the specified interval to 0 for the channels specified. 
  1423.  
  1424.  
  1425. ΓòÉΓòÉΓòÉ 2.2.5.2.11. Remove Region ΓòÉΓòÉΓòÉ
  1426.  
  1427. Rules for Remove operation: 
  1428.  
  1429. 1.  If all channels are displayed, then remove the data over the specified 
  1430. range for all channels and shift all data to the left. 
  1431.  
  1432. 2.  If a single channel is displayed, then remove the data for that channel 
  1433. over the specified range and shift the end of that channel to the left while 
  1434. zeroing out the end of the channel. 
  1435.  
  1436.  
  1437. ΓòÉΓòÉΓòÉ 2.2.5.3. Options ΓòÉΓòÉΓòÉ
  1438.  
  1439. The editor window utilizes a set of options that are specific to the window and 
  1440. which are stored between sessions.  These settings are shared between editor 
  1441. windows such that changes in one window affect all other windows. These options 
  1442. are also accessible through the editor properties page of the properties box. 
  1443.  
  1444. The following menu items are available under this menu. 
  1445.  
  1446.  Display Info      Toggles the information display in the edit window 
  1447.  All channels      Toggles the display of one or all channnels 
  1448.  Delay AUDIO loading Toggles the automatic loading of the audio buffers 
  1449.  Load AUDIO at playback Toggles the automatic loading of the audio buffers when 
  1450.                    the play button is pressed 
  1451.  Load AUDIO Data Now Forces audio data to be loaded immediately 
  1452.  Auto repeat       Toggles audio playback repeat 
  1453.  Format            Toggles the method for displaying sample indexes 
  1454.  
  1455.  
  1456. ΓòÉΓòÉΓòÉ 2.2.5.3.1. Display Info ΓòÉΓòÉΓòÉ
  1457.  
  1458. The information display at the top of the edit window is optional.  By default, 
  1459. the information display is present on all edit windows but may be toggled by 
  1460. selecting this menu item.  When this display is not present, the graphical 
  1461. displays are automatically expanded to fill the space. 
  1462.  
  1463.  
  1464. ΓòÉΓòÉΓòÉ 2.2.5.3.2. All Channels ΓòÉΓòÉΓòÉ
  1465.  
  1466. The individual channel display can be set to either display all channels at 
  1467. once or a single channel at a time.  When all channels are displayed, all 
  1468. channels of a sample share the same space that would normally be used to 
  1469. display a single channel. 
  1470.  
  1471. By default, all channels are displayed for a sample unless the check is cleared 
  1472. by toggling this menu item. 
  1473.  
  1474.  
  1475. ΓòÉΓòÉΓòÉ 2.2.5.3.3. Delay Audio Loading ΓòÉΓòÉΓòÉ
  1476.  
  1477. One of the problems with sound samples is that they take up a large amount of 
  1478. memory.  This is compounded by the way that EdSndX maintains a sample as 16 bit 
  1479. data regardless of the type of data required to store the samples.  In order to 
  1480. play samples through the audio, the edit window can automatically load the 
  1481. necessary buffers for audio playback. 
  1482.  
  1483. By default, each editor reloads the buffers whenever the sample is changed. 
  1484. This not only takes up extra CPU resources, but it can add to the memory 
  1485. requirements of the program.  If memory is tight and the swap file is being 
  1486. used, toggle this menu item to prevent taking up the memory to buffer for the 
  1487. audio device.  When this is selected, the Load Audio at Playback item is 
  1488. enabled.  Use the Load Audio Data Now menu item to load the audio buffers when 
  1489. ready to play data. 
  1490.  
  1491. This option has been provided to allow the operator to weigh the effects of 
  1492. maintaining audio buffers.  If the buffers are not automatically loaded, then 
  1493. there will be a delay whenever audio playback is requested as the buffers are 
  1494. loaded.  If the buffers are automatically loaded, then the extra memory 
  1495. requirements must be tolerated. 
  1496.  
  1497.  
  1498. ΓòÉΓòÉΓòÉ 2.2.5.3.4. Load Audio At Playback ΓòÉΓòÉΓòÉ
  1499.  
  1500. This menu item is only enabled when Delay Audio Loading has been selected. 
  1501. When this feature is enabled, the play button is enabled but the buffers are 
  1502. not loaded when samples are changed; however, the audio buffers are 
  1503. automatically loaded when the playback button is pressed.  When this feature is 
  1504. disabled, the playback button will not be enabled until the Load Audio Data Now 
  1505. has been selected to force the buffers to be loaded. 
  1506.  
  1507.  
  1508. ΓòÉΓòÉΓòÉ 2.2.5.3.5. Load Audio Data Now ΓòÉΓòÉΓòÉ
  1509.  
  1510. This menu item is always enabled to allow the operator to force EdSndX to 
  1511. reload the audio buffers at any time. Normally, EdSndX will reload the buffers 
  1512. whenever the sample is changed; however, when Delay Audio Loading has been 
  1513. enabled, the operator will need to select this menu item to load the buffers 
  1514. for playback unless Load Audio at Playback has been enabled. 
  1515.  
  1516.  
  1517. ΓòÉΓòÉΓòÉ 2.2.5.3.6. Auto Repeat ΓòÉΓòÉΓòÉ
  1518.  
  1519. This menu item is used to toggle the ability of the editor to automatically 
  1520. rewind the playback and restart whenever the audio playback reaches the end of 
  1521. the sample.  By deafult, this feature is disabled. 
  1522.  
  1523.  
  1524. ΓòÉΓòÉΓòÉ 2.2.5.3.7. Format ΓòÉΓòÉΓòÉ
  1525.  
  1526. EdSndX has the capability to display index references in the form of either a 
  1527. sample index or as a time index.  This menu item has two submenu items for each 
  1528. display method.  When the time format is used, all index references are 
  1529. displayed in the form of MM:SS.HHHH and all data entered by the user when 
  1530. editing index fields is expected to be entered in this format.  When in sample 
  1531. index mode, the index is displayed as an integer which represents the physical 
  1532. sample offset within a channel. 
  1533.  
  1534. The default for this feature is to display all indexes in the time format. 
  1535.  
  1536.  
  1537. ΓòÉΓòÉΓòÉ 2.2.5.4. Display ΓòÉΓòÉΓòÉ
  1538.  
  1539. This menu provides access to management of the display to let the operator move 
  1540. the displays using different references and to control the zoom level of the 
  1541. display. 
  1542.  
  1543. The following menu items are available for the display. 
  1544.  
  1545.  Goto              Sets the start/end of the displays 
  1546.  Zoom              Sets the method for zooming in on data 
  1547.  Redraw            Forces the entire edit window and all fields to be redrawn 
  1548.  
  1549.  
  1550. ΓòÉΓòÉΓòÉ 2.2.5.4.1. Goto ΓòÉΓòÉΓòÉ
  1551.  
  1552. The Goto submenu allows the operator to select the starting point of the 
  1553. individual channel display. This has the same effect as moving the display 
  1554. position slider bar with the mouse and is subject to the same limitations as 
  1555. the display position bar however, this submenu provides quick access to 
  1556. frequently used positions. 
  1557.  
  1558. See cursor region for a description of the popup menu which is identical in 
  1559. function to this submenu. 
  1560.  
  1561.  
  1562. ΓòÉΓòÉΓòÉ 2.2.5.4.2. Zoom ΓòÉΓòÉΓòÉ
  1563.  
  1564. The Zoom menu is used to manipulate the method for zooming in on the data.  The 
  1565. method for zooming in on a sample affects the way the edit window reacts to 
  1566. resizing. 
  1567.  
  1568. See zoom region for a description of the popup menu which is identical in 
  1569. function to this submenu. 
  1570.  
  1571.  
  1572. ΓòÉΓòÉΓòÉ 2.2.5.4.3. Redraw ΓòÉΓòÉΓòÉ
  1573.  
  1574. In the event that the operator feels that the edit display is out of sync, the 
  1575. Redraw menu item can be used to force the editor to update all displays. 
  1576.  
  1577.  
  1578. ΓòÉΓòÉΓòÉ 2.2.5.5. Markers ΓòÉΓòÉΓòÉ
  1579.  
  1580. Markers are used as indicators of important positions in a sample.  These 
  1581. markers can be simply used for information to the operator or to allow the 
  1582. operator to provide key positions which are used to manipulate the sample. 
  1583.  
  1584. The following marker menu items are provided in this menu. 
  1585.  
  1586.  Start             Sets the starting point for range selection 
  1587.  End               Sets the ending point for range selection 
  1588.  Play              Sets the current playback position 
  1589.  
  1590.  
  1591. ΓòÉΓòÉΓòÉ 2.2.5.5.1. Start ΓòÉΓòÉΓòÉ
  1592.  
  1593. The Start submenu is used to select the start of the selection range.  See 
  1594. start region for a description of the popup menu which is identical in function 
  1595. to this submenu. 
  1596.  
  1597.  
  1598. ΓòÉΓòÉΓòÉ 2.2.5.5.2. End ΓòÉΓòÉΓòÉ
  1599.  
  1600. The End submenu is used to select the end of the selection range.  See end 
  1601. region for a description of the popup menu which is identical in function to 
  1602. this submenu. 
  1603.  
  1604.  
  1605. ΓòÉΓòÉΓòÉ 2.2.5.5.3. Play ΓòÉΓòÉΓòÉ
  1606.  
  1607. The Play submenu is used to select the current position of audio playback.  See 
  1608. play mode for a description of the popup menu which is identical in function to 
  1609. this submenu. 
  1610.  
  1611.  
  1612. ΓòÉΓòÉΓòÉ 2.2.5.6. Tools ΓòÉΓòÉΓòÉ
  1613.  
  1614. The DSP tools have been disassociated from individual samples and edit windows 
  1615. by providing the DSP tools in the form of a toolbox. In order to utilize the 
  1616. DSP tools, the edit window provides a menu which allows the user to temporarily 
  1617. associate the toolbox with an edit window. 
  1618.  
  1619. The tools menu provides the following special items. 
  1620.  
  1621.  Abort             Aborts the current DSP tool 
  1622.  Switch to         Opens the toolbox and associates the current edit window 
  1623.                    with the toolbox 
  1624.  
  1625.  Other items are available which correspond to the pages of the toolbox and can 
  1626.  be used to automatically switch to a page and associate the toolbox with the 
  1627.  edit window in one step. 
  1628.  
  1629.  
  1630. ΓòÉΓòÉΓòÉ 2.2.5.6.1. Abort ΓòÉΓòÉΓòÉ
  1631.  
  1632. The operation of the toolbox is to become temporarily associated with the 
  1633. editor window such that a tool can be setup and then launched.  Upon starting 
  1634. the task to perform a DSP tool, the toolbox automatically disassociates itself 
  1635. from the edit window.  As a result, the edit window maintains ownership of the 
  1636. task which is performing the DSP function and has to have a means to abort the 
  1637. operation. At any time before the progress indicator on the edit window reaches 
  1638. 99%, the Abort button is enabled and will allow the operator to terminate the 
  1639. current DSP thread for that editor.  When a DSP thread is not running, the 
  1640. Abort menu item is disabled. 
  1641.  
  1642.  
  1643. ΓòÉΓòÉΓòÉ 2.2.5.6.2. Switch To ΓòÉΓòÉΓòÉ
  1644.  
  1645. As indicated, the toolbox is disassociated from the edit samples and edit 
  1646. windows.  In order to use the toolbox, it must be temporarily associated with a 
  1647. editor.  This is done by either using the switch to menu item or by selecting 
  1648. the specific DSP tool to be used. 
  1649.  
  1650. Regardless of the method, the toolbox displays the name of the sample that it 
  1651. is currently assocaiated with in the titlebar of the toolbox.  When the switch 
  1652. to menu item is selected, the toolbox is then changed over to the editor from 
  1653. which the command came from.  In this manner, the toolbox can float between 
  1654. each of the samples or be dismissed while the DSP operations are occurring. 
  1655.  
  1656. If the toolbox is not displayed at the time that the association is requested, 
  1657. EdSndX will automatically display the toolbox. 
  1658.  
  1659.  
  1660. ΓòÉΓòÉΓòÉ 2.3. Tools ΓòÉΓòÉΓòÉ
  1661.  
  1662. Using a notebook to display the TOOLS has some unique presentation advantages. 
  1663. Primarily the notebook allows the effects to be displayed in a single dialog 
  1664. window.  Since each effect is mutually exclusive of any other tool this 
  1665. approach displays the maximum information that the user can utilize at any 
  1666. time.  Another approach would have been to develop a dialog box for each tool. 
  1667. This approach has the disadvantage that it would require a second control panel 
  1668. to select the specific tools.  This would violate the approach of providing a 
  1669. single control panel for the user and would necessitate managing a number of 
  1670. different windows which could potentially clutter the screen.  The notebook is 
  1671. a clean and aesthetically pleasing means for managing the tools. 
  1672.  
  1673. The heart of manipulating the samples is accessed from the TOOLS notebook. 
  1674. Some of the pages of the notebook provide information while others let the user 
  1675. apply a particular effect on the current sound sample.  The TOOLS notebook can 
  1676. be dismissed by pressing the TOOLS button on the main control panel or by 
  1677. pulling down the system menu for the toolbox and selecting CLOSE. 
  1678.  
  1679. The notebook is divided into sections such that functions with similar 
  1680. operations are grouped together.  The tabs on the right of the notebook access 
  1681. the section and the tabs at the bottom of the page are used to access the 
  1682. individual functions of the grouping. The tabs on the notebook provide access 
  1683. to the Info, Type, Average, Duplicate, Band Pass, Low Pass, Rate, Speed, Echo, 
  1684. Invert, Reverse, Vibro, Limit, Fade, and Balance functions for manipulating the 
  1685. samples. 
  1686.  
  1687. The notebook may be navigated by either selecting the tab on the right of the 
  1688. book for the desired function or by using the small Plus and Minus buttons at 
  1689. the bottom of the notebook.  Using the Plus and Minus buttons will move through 
  1690. the notebook a single page at a time. 
  1691.  
  1692. To select the tabs using the keyboard, the focus for the notebook must be set 
  1693. for the notebook container (by clicking the mouse outside of one of the tools 
  1694. or by pressing the ALT key and the UP arrow). Selecting any character that is 
  1695. underlined will bring that page to the top of the display. 
  1696.  
  1697. The notebook can be displayed regardless of the presence of sample data in 
  1698. memory.  When no sample is present, the pages of the notebook will be 
  1699. invalidated but can still be viewed. 
  1700.  
  1701.  
  1702. ΓòÉΓòÉΓòÉ 2.3.1. Info ΓòÉΓòÉΓòÉ
  1703.  
  1704. The Info page displays all of the relevant information about the samples 
  1705. currently in memory.  This includes the following categories: 
  1706.  
  1707.  Load Format     One of the formats which the program can save or open 
  1708.  Data Type       The default extension for this file format. 
  1709.  Data Style      SIGNED, UNSIGNED, ULAW, or ALAW 
  1710.  Channels        Number of channels in the sample 
  1711.  Sampling Rate   The number of samples taken each second 
  1712.  Data Size       BYTE (8 bits), WORD (16 bits), LONG (32 bits) 
  1713.  Samples         The number of samples that make up each channel 
  1714.  Comments        Some sample files may contain comments.  Any comments found 
  1715.                  are displayed in this window 
  1716.  Byte Order      The natural order of the bytes in each sample.  This field can 
  1717.                  display either Big Endian or Little Endian 
  1718.  
  1719.  
  1720. ΓòÉΓòÉΓòÉ 2.3.2. Type ΓòÉΓòÉΓòÉ
  1721.  
  1722. The type of the file is determined by the header written to the beginning of 
  1723. the file.  See Save for information how the file type is determined when a file 
  1724. is saved to disk.  Additionally, the user may use the this tool to change the 
  1725. Load Format (displayed in the Info page of the tools notebook).  When the file 
  1726. is saved, the default file format will automatically be set to whatever has 
  1727. been chosen on this page of the notebook.  Changing the file name extension or 
  1728. selecting a file format in the SAVE dialog will override this setting. 
  1729.  
  1730. Each file format utilizes different headers for the actual data.  By selecting 
  1731. one of the standard formats on this page the Info page will show the user how 
  1732. the samples will be saved.  The fields that are most likely to change are the 
  1733. Load Format, Data Type, Data Style, and Data Size. 
  1734.  
  1735.  
  1736. ΓòÉΓòÉΓòÉ 2.3.3. Average ΓòÉΓòÉΓòÉ
  1737.  
  1738. This tool is useful for reducing the number of channels in a sample by either 
  1739. eliminating channels or by averaging the sounds together.  A sample with an 
  1740. even number of channels may be averaged to produce a sample with half the 
  1741. initial number of channels. For example, a sample with four channels can be 
  1742. averaged to produce a sample with two channels and a sample with two samples 
  1743. can be averaged to produce a sample with one channel. 
  1744.  
  1745. Channels may be averaged in three ways.  The simplest is to take the left or 
  1746. right channel data as the final data.  A more complex method is to average the 
  1747. samples of the left and right to produce a center sample. The results of these 
  1748. operations are significantly different and can result in very different output 
  1749. samples. 
  1750.  
  1751. When a sample contains four channels, it is composed of four sound sources at 
  1752. 45 degrees in each quadrant.  This corresponds to the Front Left, Front Right, 
  1753. Rear Left, or Rear Right.  To average these into two channels the user can 
  1754. select to use any of the four channels or to average based on the left or 
  1755. right. To select or average any combination of the channels into either of the 
  1756. output channels, check the box for the channels from the source sample.  To aid 
  1757. in this, two radio buttons have been provided which enable or disable the 
  1758. selection of check boxes in the second channel depending on the number of 
  1759. output channels selected. 
  1760.  
  1761.  
  1762. ΓòÉΓòÉΓòÉ 2.3.4. Dupe ΓòÉΓòÉΓòÉ
  1763.  
  1764.  This tool is useful to add channels to a sample through simple duplication. 
  1765. When this tool is used, the new channels created are exact duplicates of the 
  1766. original samples. Channels can be duplicated such that a single channel sample 
  1767. can be made to have two channels which are identical or two channels can be 
  1768. duplicated to form four channels. 
  1769.  
  1770. When copying two channels to 4, PMsndX allows the user to specify which of the 
  1771. input channels will be placed on the output channels.  In this way, a single 
  1772. channel of a dual channel sample can be copied to any of the four output 
  1773. channels. 
  1774.  
  1775.  
  1776. ΓòÉΓòÉΓòÉ 2.3.5. Band Pass ΓòÉΓòÉΓòÉ
  1777.  
  1778. This tool provides the ability to apply a band-pass filter to a sample. A 
  1779. band-pass filter is used to eliminate unwanted frequencies from a sample.  This 
  1780. is often to eliminate high frequency hiss and low frequency hum from a sample. 
  1781. The typical range of frequencies that affect the human ear are from about 100 
  1782. Hz through about 16 kHz.  Like the equalizer on a stereo, the bandpass filter 
  1783. can be used to reduce the effect of unwanted frequencies.  Although we 
  1784. generally think of a bandpass filter as operating like a perfect step function, 
  1785. it has ringing at the edges of the transitions and will affect the frequencies 
  1786. near the edges of the filter. 
  1787.  
  1788. The frequency response for the filter is designed to drop logarithmically 
  1789. around a center frequency.  The slope of the drop at the desired start (Wp) and 
  1790. end (Ws) of the filter varies with the distance between the Wp and Ws.  This 
  1791. width is used to determine the slope of the dropoff at the edges of the filter. 
  1792. The frequencies at Wp and Ws will be approximately half of their original 
  1793. amplitudes and all frequencies outside of the Center - Wp and the Center + Ws 
  1794. will be eliminated.  The bandpass filter can be mode oriented to pitched 
  1795. signals (i.e. voice, singing, or instrumental music) or can be modified by 
  1796. adding noise to the filter so that un-pitched signals can be effectively 
  1797. processed. 
  1798.  
  1799. Note:  To aid the user in locating the maximum effective center frequency, a 
  1800.        light blue vertical bar is placed at half the sampling rate for the 
  1801.        data. 
  1802.  
  1803.   The transformation for the Bandpass filter was derived from a a program 
  1804.  called MUSIC56K (as documented in the MUSIC56K source code) and implemented in 
  1805.  C++ for this program. 
  1806.  
  1807.  Operation of the bandpass filter tool is probably one of the most complex 
  1808.  interfaces in the toolbox.  It is based on a simple principle.  The entire 
  1809.  display of the filter represents the frequency response of the filter and is 
  1810.  operated like a slider.  However, since the Start frequency and the Stop 
  1811.  frequency are independent, the sliding bar is divided into identical controls 
  1812.  for each filter edge. Before getting into the operation of the controls the 
  1813.  display needs to be explained to establish the terms that will be used. 
  1814.  
  1815.  As mentioned, the display is designed to illustrate the frequency response of 
  1816.  the bandpass filter (independent of any added noise).  The center of the Start 
  1817.  (Wp) and End (Ws) of the filter are marked by vertical BLUE bars.  The Center 
  1818.  (Wc) of the filter is marked by a vertical RED bar.  These three markers 
  1819.  provide the means for the user to modify the filter.  The region to the left 
  1820.  of the RED center frequency is always the start of the filter.  The user may 
  1821.  click the mouse to the left of Wp to decrease Wp by 1000 Hz.  Clicking between 
  1822.  Wp and Wc increases Wp by 1000 Hz.  Likewise, clicking between Wc and Ws 
  1823.  decreases Ws by 1000 Hz and clicking to the right of Ws increases Ws by 1000 
  1824.  Hz.  The user may also click the mouse near Ws or Wp to drag the respective 
  1825.  ends of the filter quickly. 
  1826.  
  1827.  To provide fine control of the filter, Right and Left arrows are provided for 
  1828.  both Wp and Ws.  Clicking on either the right or left arrow will increase the 
  1829.  indicated filter edge by 1 Hz.  To increase or decrease the filter edges by 10 
  1830.  Hz, the user may select the plus or minus corresponding to the filter edges. 
  1831.  The left set of controls affects Wp and the right set of controls affects Ws. 
  1832.  
  1833.  As the mouse is used to adjust Wp and Ws, the exact frequencies for Wp, Ws, 
  1834.  Wc, and the filter Width are updated in the text input fields.  The user can 
  1835.  use the mouse to select one of the input fields and modify it directly.  To 
  1836.  accept a value in the entry field and recalculated the dependent frequencies 
  1837.  select another window or click on another item which moves the focus from the 
  1838.  notebook.  The rules for the fields are as follows: 
  1839.  
  1840.    1. If the Center frequency is modified, new values for Wp and Ws are 
  1841.       immediately calculated using the current Width. If Wp or Ws are outside 
  1842.       of the possible ranges, then Wp or Ws are set to the limit of the 
  1843.       acceptable range and the Width and Center are recalculated. 
  1844.    2. If the Width of the filter is modified, new values for Wp and Ws are 
  1845.       immediately calculated using the current Center frequency.  If Wp or Ws 
  1846.       are then outside of the acceptable ranges, Wp or Ws is then set to its 
  1847.       limit and the Center and Width are recalculated. 
  1848.    3. If Wp is changed, the Width and Center are automatically recalculated to 
  1849.       reflect the new start of the filter. 
  1850.    4. If Ws is changed, the Width and Center are automatically recalculated to 
  1851.       reflect the new end of the filter. 
  1852.  
  1853.  The bandpass filter has been selected because of the desirable effect on 
  1854.  typical sounds that will be processed by PMsndX such as voice or music. 
  1855.  However, if other types of noise are to be filtered, noise can be added to the 
  1856.  filter which results in a sharper peak of the filter.  To add this noise, 
  1857.  select the checkbox for "Add filter noise". Selecting the checkbox again will 
  1858.  disable the filter noise. 
  1859.  
  1860.  Note:  The display of the frequency response for the filter does not reflect 
  1861.         added noise. 
  1862.  
  1863.  
  1864. ΓòÉΓòÉΓòÉ 2.3.6. Low Pass ΓòÉΓòÉΓòÉ
  1865.  
  1866. A Low Pass filter can be applied to a sample to eliminate high frequencies. 
  1867. With a bandpass filter, it is not possible to eliminate any effect on lower 
  1868. frequencies; however, a lowpass is designed specifically to eliminate changes 
  1869. on frequencies below the right dropoff.  A lowpass filter is normally used to 
  1870. eliminate high frequency hiss. Frequencies near the edge of the filter will be 
  1871. attenuated by the natural change in the frequency response of the filter and 
  1872. the ringing that occurs at the edge of the drop. The lowpass filter also 
  1873. increases the volume of the sample and a attenuation (gain) factor is provided 
  1874. to allow the user to limit the effect.  Depending on the volume of the initial 
  1875. sample, the attenuation may be less important but should be experiemented with 
  1876. to find a good compromise. 
  1877.  
  1878. Filtering is accomplished in the digital domain through the use of a very 
  1879. simple second order digital Fourier transform.  Future implementation may have 
  1880. a more complex Fourier transform; however, the chosen function is desirable 
  1881. because it provides a smooth dropoff without significant ringing. The 
  1882. performance of the filter is determined by the cutoff frequency and the rate of 
  1883. drop.  If the dropoff is made too quickly, the filter will exhibit a ringing 
  1884. effect at the begin and end of the dropoff.  If the dropoff is performed too 
  1885. slowly, the filter will suppress more frequencies toward the end of the desired 
  1886. range.  The more orders of the filter (more stages), the better the frequency 
  1887. response; however, more orders increase the time for filtering significantly. A 
  1888. two order filter works adequately. 
  1889.  
  1890. When performing the digital convolution of the sample with the step function a 
  1891. Gain factor is used to normalize the output data.  This acts as a Volume 
  1892. control for the sample to prevent losses due to numerical overflow.  Values for 
  1893. the gain range from 0 to 1 in increments of 0.01.  A slider bar is used to set 
  1894. the gain of the low pass filter.  When the low pass filter is first brought up, 
  1895. the Gain will default to a value of 0.8.  If this is changed, it will remain at 
  1896. the new setting until the session is terminated. 
  1897.  
  1898. The Frequency response of the low pass filter is determined by a the 
  1899. centerpoint of the dropoff at the end of the step function.  When performing a 
  1900. digital filter, it is not possible to prevent the gradual drop at the end of 
  1901. the step function due to the convolution of the samples used in the 
  1902. transformation.  This is true for analog components also. The centerpoint of 
  1903. the dropoff can be set in three ways. The user may enter the specific frequency 
  1904. in the text entry box in the lower right corner or may use the filter display 
  1905. like a sliding bar.  As is typical of a sliding bar, the mouse may be used to 
  1906. capture the cutoff frequency by pressing the mouse button while the mouse is 
  1907. near the cutoff frequency.  By holding the button down, the user may drag the 
  1908. frequency to the desired range.  Additionally, the user may click to the right 
  1909. or the left of the frequency cutoff to increase or decrease the frequency by 
  1910. 1000 Hz. The right and left arrows in the corners of the display may be used to 
  1911. increase or decrease the frequency by 1 Hz. The plus and minus buttons in the 
  1912. corners of the display may be used to increase or decrease the frequency by 10 
  1913. Hz. The frequency response curve illustrates the dropoff that occurs at the end 
  1914. of the step function. 
  1915.  
  1916.  
  1917. ΓòÉΓòÉΓòÉ 2.3.7. Rate ΓòÉΓòÉΓòÉ
  1918.  
  1919. Every sound file is produced by sampling an analog wave at a specific 
  1920. frequency.  As a result, the sound must be played back at the same frequency in 
  1921. order for it to be reproduced clearly.  Higher sampling frequencies result in 
  1922. better quality sound but increases the size of the file.  Most PC based sound 
  1923. cards are designed to operate most effectively at multiples of 11025 Hz; 
  1924. unfortunately, many sound files are sampled at rates which are not multiples of 
  1925. 11025 Hz and they can be resampled to be playable by applications which cannot 
  1926. play these rates.  A drawback of sampling is that it may degrade the actual 
  1927. samples because it must interpolate (predict) the original analog waveform 
  1928. which introduces slight errors.  In most cases, this will not be 
  1929. distinguishable by the human ear. 
  1930.  
  1931. Once a sample has been loaded into memory, the current rate information is 
  1932. displayed on the RATE page of the notebook. The user may select from a set of 
  1933. standard sampling rates for common computer formats or may specify a specific 
  1934. rate. OS/2 and Windows use standard rates which are multiples of 11025 Hz. 
  1935. Sun, DEC, and NeXT computers commonly use a sampling rate of 8000 Hz.  Standard 
  1936. rates of 8000, 11025, 22050, and 44100 Hz have been provided for the user to 
  1937. select. 
  1938.  
  1939. If the user wishes to use a sampling rate which is not one of these, the button 
  1940. for Non-Standard should be pressed.  This will activate the slider bar and user 
  1941. input windows to allow the user to specify the rate.  The slider bar can be 
  1942. used to quickly change the rate in the input window or the user may select the 
  1943. input window and type in the desired rate. 
  1944.  
  1945.  
  1946. ΓòÉΓòÉΓòÉ 2.3.8. Speed ΓòÉΓòÉΓòÉ
  1947.  
  1948. This function will change the playback speed of a sample. This is the same 
  1949. thing as setting a phonograph to a different speed such that the sound is 
  1950. played too fast or too slow.  This function is similar to the RATE function 
  1951. except that the target playback rate is changed as the sample is interpolated. 
  1952. This function does use interpolation to predict the original analog waveform; 
  1953. therefore, the resulting sample will contain slight errors just like the RATE 
  1954. function. 
  1955.  
  1956. The controls for this effect simply specify the new playback speed.  Once a new 
  1957. speed is selected, the sample is resampled to interpolate the new playback 
  1958. points. As a result, a sample is still played at the same rate, but the data is 
  1959. modified to play at the new rate.  This allows the sample to be stored in a 
  1960. file which is of a standard rate. 
  1961.  
  1962. The user may select any of the standard rates including 8000 Hz, 11025 Hz, 
  1963. 22050 Hz, and 44100 Hz.  Additionally, the user may specify the playback speed 
  1964. to be either double (x2) or half (x1/2) or may specify a specify playback speed 
  1965. by selecting the User button.  If a speed other than the current speed is 
  1966. specified, the DOIT button will be activated which will allow the user to 
  1967. perform the change. 
  1968.  
  1969.  
  1970. ΓòÉΓòÉΓòÉ 2.3.9. Echo ΓòÉΓòÉΓòÉ
  1971.  
  1972. An echo is created when sound reflects off an object (or multiple objects) and 
  1973. returns to the originator at slight time offsets.  Each bounce reduces the 
  1974. intensity of the sound such that the volume diminishes with each bounce.  The 
  1975. ECHO tool is created by simulating a set of walls forward and aft of the source 
  1976. such that the sound would bounce off of each wall and be reflected back to the 
  1977. other wall.  In order for the ECHO effect to be strongly heard, at least two 
  1978. echo points should be set up with total attenuation of less than 1.0. 
  1979.  
  1980. The echo effect will modify a sample to provide attenuation at specific points 
  1981. in a sample.  The operator must specify the points where the echo effects are 
  1982. to start and an attenuation or Volume for the echo.  The attenuation determines 
  1983. the length of time that it takes for the echo to die away.  If the Attenuation 
  1984. specified for all of the echo points is greater than 1, then the echo will 
  1985. "melt" rather than fading away and consequently may take a long time to 
  1986. complete.  If an attenuation is set to 0 or less, the Echo point is ignored. 
  1987.  
  1988. The echo effect presents an interesting challenge to the user interface.  How 
  1989. do you provide the user with an intuitive method to set the echo locations and 
  1990. the strength of the echo from a dialog box?  Well, look at the ECHO notebook 
  1991. page and follow along in the explanation of the operation.  This notebook page 
  1992. includes a graphical display of the current sample, a text entry field for 
  1993. editing (e.g. adding or deleting) time marks, and a volume control for setting 
  1994. the strength of the echo. 
  1995.  
  1996. The ECHO notebook is centered around the graph at the top of the page.  This 
  1997. display is the primary point of control. However, to allow for a bit more 
  1998. direct control, the user may use the entry fields to add and delete echo points 
  1999. too. To explain it all, I will start with the graphical display first and then 
  2000. lead to the secondary controls. 
  2001.  
  2002. Once a sample has been loaded into memory, the graphical display will become 
  2003. active.  The display is controlled through two slider bars for the position in 
  2004. the sample and for the magnification. The sample is normalized so that the 
  2005. largest sample value will hit the limit of the display.  This makes the display 
  2006. volume independent but gives maximum clarity of the actual waveform in memory. 
  2007. Markers may be added or moved to set the echo points in the waveform.  To aid 
  2008. the operator in locating the desired echo point, the display contains a status 
  2009. bar for the starting timemark for the sample in the window, the current 
  2010. timemark under the mouse, and the magnification factor. 
  2011.  
  2012. To move to the right or left in the display, the horizontal slider bar may be 
  2013. used.  Pressing the end arrows moves the display one displayed sample to the 
  2014. left or right.  When the slider bar is pressed, the display will move one half 
  2015. screen to the right or left.  The user may move the display to a region quickly 
  2016. by selecting the slider button and dragging it to the appropriate position. 
  2017. The display is immediately updated to display the current position. 
  2018.  
  2019. The display area at the bottom of the graph provides a timemark indicator for 
  2020. the first sample appearing at the left of the graph.  This provides a reference 
  2021. for moving through the data.  The time marker is displayed in the form of 
  2022. m:ss.ssss where m is the number of minutes into the sample and ss.ssss is the 
  2023. number of seconds into the sample. 
  2024.  
  2025. Even the smallest sample contains more data than can fit on the graphical 
  2026. display.  For this reason the vertical slider to the right of the graphical 
  2027. display is used to adjust the viewing magnification of the samples.  The 
  2028. maximum magnification of the samples is determined by the length of the sample 
  2029. and is calculated by dividing the total sample length by the largest number of 
  2030. data points which may be scrolled through on the display.  The display is 
  2031. limited to the maximum size of an signed 16 bit value due to the limitations of 
  2032. the signals for the horizontal slider bar. This results in a maximum of 32767 
  2033. data points which can be displayed and scrolled through. 
  2034.  
  2035. Initially, the magnification is set for the maximum displayable.  To decrease 
  2036. the magnification (i.e. zoom out) on the sample, move the slider down the bar. 
  2037. The arrows on the ends of the bar can be used to increase or decrease the 
  2038. magnification in increments of 1.  Selecting between the button and the arrows 
  2039. doubles or halves the magnification. If the button is selected, the 
  2040. magnification can be set immediately to a value.  Markers are displayed for the 
  2041. nearest point in the zoom.  However, markers can only be set on exact multiples 
  2042. of the zoom.  Therefore, when trying to move a marker, if it is set at a 
  2043. different magnification, it may not be possible to move the marker without 
  2044. returning to that zoom.  Essentially, the marker is displayed but cannot be 
  2045. selected because that exact sample point is not visible. I considered making 
  2046. the mouse select the nearest marker, but this is a point of confusion if many 
  2047. markers are displayed at the same location for a specific magnification. 
  2048.  
  2049. The current magnification is displayed in the status area of the display in the 
  2050. form of "x1/nnnnn" where "nnnnn" is replaced by the current magnification 
  2051. number (i.e. number of points represented by a single point on the display). 
  2052. If the display says that the zoom is x1/2, then the magnification of the 
  2053. display is halved.  If this sounds confusing, then just play with the notebook 
  2054. page for a bit to get a feel for the operation of the zoom. 
  2055.  
  2056. Before going on, another area of the display needs to be described.  The center 
  2057. number on the status area of the display indicates the timemark for the current 
  2058. (or last) mouse position. Whenever the mouse is moved into the display area, 
  2059. this number will be updated to indicate the time offset for that particular 
  2060. point.  This takes into account the magnification. 
  2061.  
  2062. Now for the fun part.  To add an echo point to the sample, move the mouse to 
  2063. the place where you desire the echo.  The status display will provide a 
  2064. reference for the timemark. When the proper position has been selected, click 
  2065. the mouse and a blue marker will be placed.  If the mouse is released, the 
  2066. marker will be set at that location in the sample.  If the mouse is not 
  2067. released, the marker may be dragged across the display. This marker may be 
  2068. moved later if necessary by other means too. 
  2069.  
  2070. Note:  If at any time the mouse pointer is moved outside of the display before 
  2071.        the mouse button is released, the marker will not be set and the blue 
  2072.        mark will be erased from the display. 
  2073.  
  2074.   A echo marker may be moved by positioning the mouse pointer over the marker 
  2075.  and pressing the mouse button.  If the marker is on a multiple of the zoom 
  2076.  level, it will be selected and will follow the mouse as long as the button is 
  2077.  pressed.  When the button is released, the marker will be placed at that 
  2078.  position. 
  2079.  
  2080.  A marker may be moved to another time delay by entering the desired delay 
  2081.  directly through the Time Mark entry field. 
  2082.  
  2083.  Note:  If the mouse is moved off the display area, the marker will be restored 
  2084.         to its original position. 
  2085.  
  2086.   For each marker displayed, the timemark is stored in a Combo Box.  This box 
  2087.  is like an entry field in that the user can edit the time directly ; however, 
  2088.  it also has a drop down box that can scroll vertically through all of the 
  2089.  different markers.  This type of box provides a great deal of flexibility for 
  2090.  the user. 
  2091.  
  2092.  To add a marker at a specific time, position the cursor in the Timemark box 
  2093.  and edit the time index.  The format is the same as that used to display the 
  2094.  time marks in the main display.  Enter the number of minutes followed by the 
  2095.  seconds.  The granularity of the seconds is on the order of 1/10000 of a 
  2096.  second.  For example, entering 6:54.4253 would accept a time mark at 6 
  2097.  minutes, 54.4253 seconds.  If a value is entered with is beyond the maximum 
  2098.  sample of the file or less than 0, then the data is ignored. 
  2099.  
  2100.  Once the desired time mark has been entered, the user may press the Add button 
  2101.  to place the marker in the current database.  All timemarks added to the 
  2102.  display use the volume specified for the last timemark, or 0 if no volume has 
  2103.  been set yet. 
  2104.  
  2105.  When the listbox is pulled down for the timemarks, each of the timemarks that 
  2106.  have been entered are displayed in a vertically and horizontally scrollable 
  2107.  window.  Up to 32 markers may be placed in the file and any markers which are 
  2108.  unused are displayed with the word "EMPTY".  The markers are placed in the 
  2109.  database in the order that they are entered unless a free slot is open (from 
  2110.  being deleted).  The user may select any of the time marks using the combo 
  2111.  box. If the selected timemark is not empty, the display will be updated to 
  2112.  display the selected timemark in the center of the graph.  In the event that 
  2113.  the timemark is too close to the end or beginning of the sample to display in 
  2114.  the center of the graph, the timemark will be displayed without being 
  2115.  centered.  Once a timemark has been selected, the Del button may be pressed to 
  2116.  delete the marker from the database.  The entry field is not cleared in order 
  2117.  to allow the user to directly edit the timemark which was deleted and add it 
  2118.  later. 
  2119.  
  2120.  The volume for each timemark may be set by specifying a value in the volume 
  2121.  entry field.  This is a simple entry field in which the user can type or 
  2122.  delete numbers.  Since the volume (attenuation) for each timemark may range 
  2123.  from 0 to infinity, the only method for entering the volume is through the 
  2124.  keyboard.  Sorry, no sliders here.  As each character is typed, it is stored. 
  2125.  The user does not have to press enter or any key to accept the value. 
  2126.  
  2127.  Note:  The most common mistake for the echo effect is in forgetting to enter a 
  2128.         value in the Volume field.  Remember that you must provide an 
  2129.         attenuation for the echo in the Volume entry field to make the echo 
  2130.         point valid. 
  2131.  
  2132.  
  2133. ΓòÉΓòÉΓòÉ 2.3.10. Invert ΓòÉΓòÉΓòÉ
  2134.  
  2135. Any series of samples may be inverted such that all positive values become 
  2136. negative and all negative values become positive.  A sample is composed of 
  2137. numbers which are digital snapshots of an analog wave at regular intervals. 
  2138. These numbers can take on positive and negative values which push or release 
  2139. the cone of a speaker to produce sound. 
  2140.  
  2141. To the human ear, there is no difference in the sound produced; however, 
  2142. mathematically, the new wave is very different.  An inverted wave may be added 
  2143. to a normal wave to mathematically subtract one from another. When this 
  2144. function is combined with the MERGE function of the editor, samples can be 
  2145. added together to eliminate common frequencies. 
  2146.  
  2147. The range and channels for this function are selected through the editor. 
  2148.  
  2149.  
  2150. ΓòÉΓòÉΓòÉ 2.3.11. Reverse ΓòÉΓòÉΓòÉ
  2151.  
  2152. When the digital data of a sample is reversed, the effect is that of playing a 
  2153. record backwards. 
  2154.  
  2155. This effect allows the user to reverse a section (or all) of a sample.  The 
  2156. range and channels for this function are selected through the editor. 
  2157.  
  2158.  
  2159. ΓòÉΓòÉΓòÉ 2.3.12. Vibro ΓòÉΓòÉΓòÉ
  2160.  
  2161. This tool simulates the effect of driving a sound through a rotating fan such 
  2162. that the intensity of the sample is modified at a regular interval. 
  2163.  
  2164. This function performs the "world-famous" Fender Vibro-Champ sound effect to a 
  2165. sound sample by using a sine wave as the amplitude of the volume at each 
  2166. sample.  This tool requires that the user set the Speed and the Depth of the 
  2167. sine wave. 
  2168.  
  2169. The speed setting gives the frequency of the sine wave in Hertz.  The range of 
  2170. values for the slider are from 1 to 30 in increments of 1 Hertz.  A value of 0 
  2171. would be useless for a frequency and is not allowed. 
  2172.  
  2173. The depth setting gives the amount by which the volume will be cut into by the 
  2174. sine wave.  The range of values for the slider are from 0.0 to 1.0 in 
  2175. increments of 0.01.  The initial value of the slider is 0.5. 
  2176.  
  2177.  
  2178. ΓòÉΓòÉΓòÉ 2.3.13. Fade ΓòÉΓòÉΓòÉ
  2179.  
  2180. This effect allows the user to either fade in or fade out the volume of a 
  2181. sample.  Fading the data in a sample is produced by increasing or decreasing 
  2182. the volume of the sample over a period.  To fade a sample in is to slowly 
  2183. increase the volume of the sample from 0 to the normal volume of the sample 
  2184. over a block of time.  To fade the sound out is just the opposite in which the 
  2185. volume of the sample is slowly reduced over a period. 
  2186.  
  2187. The FADE tool provides three methods for fading which provide a robust means 
  2188. for controlling the volume of the data over the specified range of operation. 
  2189. These are Linear, Slow Geometric, and Fast Geometric. 
  2190.  
  2191.  
  2192. ΓòÉΓòÉΓòÉ 2.3.14. Limit ΓòÉΓòÉΓòÉ
  2193.  
  2194. Most anyone who has received a sound sample from different sources has had the 
  2195. problem that the recorded volume is inconsistent between different samples. 
  2196. After all, there is no standard recording level for the different machines or 
  2197. different software. 
  2198.  
  2199. To allow the user to adjust the volume of a sample, PMsndX provides a tool 
  2200. which can either adjust the volume by multiplying every sample by a fixed 
  2201. amount or by multiplying the samples by a value based on the limit of the data 
  2202. that can held in memory. 
  2203.  
  2204. By specifying a maximum value for the sound sample, all sound samples can be 
  2205. set to have a similar maximum.  The obvious use for this function is to allow a 
  2206. library of sounds to be set at the same volume.  The value used for the maximum 
  2207. volume is based on a percentage of the maximum data that can be held in a 
  2208. single sample.  As an example, a value of 100% for the volume represents a 
  2209. value of 127 for a signed byte sample. 
  2210.  
  2211. When the button for the Maximum is selected, the slider bar directly beneath 
  2212. the button is activated.  Initially, this will be set to the current volume in 
  2213. terms of the percentage of the maximum value for the sample.  The volume may be 
  2214. adjusted by setting the slider to a value between 0 and 100 percent of the 
  2215. maximum. 
  2216.  
  2217. Since the value is based on a percentage of the maximum value of the data that 
  2218. can be stored in a sample, clipping is not possible. 
  2219.  
  2220. When the button for the Fixed value is selected, the slider bar directly 
  2221. beneath the button is activated as well as the checkbox for clipping.  The 
  2222. fixed bar provides the means to multiply all sound samples by a fixed value 
  2223. between 0 and 2 in increments of 0.1. A value of 1 makes no change.  Any value 
  2224. greater than 1 increases the volume and any value less than 1 decreases the 
  2225. volume.  A value of 2 doubles the volume of the sample. 
  2226.  
  2227. When using fixed sampling it is possible to exceed the maximum data that may be 
  2228. stored for a sample.  The Allow Clipping checkbox may be selected to allow the 
  2229. data to be clipped.  If the checkbox is not set and if the fixed multiple will 
  2230. result in clipping, then the multiple will be set to the maximum value that 
  2231. will not result in clipping.  If the clipping box is set, data may exceed the 
  2232. maximum that may be stored for the sample which will result in noise. 
  2233.  
  2234.  
  2235. ΓòÉΓòÉΓòÉ 2.3.15. Balance ΓòÉΓòÉΓòÉ
  2236.  
  2237. When a sample has more than one channel, the volume of the individual channels 
  2238. can be varied.  The balance of the channels can be achieved either 
  2239. instantaneously or over a period of time.  These are the same basic functions 
  2240. as used in the FADE and SWAP effects and are Linear, Slow Geometric, and Fast 
  2241. Geometric, and Step. 
  2242.  
  2243. The volume of a sample may vary by either starting at the specified percentage 
  2244. of the current volume for each channel and progressively approaching full 
  2245. volume.  This is similar to fading in a sample and is achieved by selecting the 
  2246. "IN" button.  The opposite effect is achieved when the volume starts at the 
  2247. current volume and progressively decreases to a percentage of the current 
  2248. volume. 
  2249.  
  2250. When balancing a sample, the user must specify a percentage for each channel. 
  2251. When fading in, this is the percentage that the volume will start at for each 
  2252. respective channel. When fading out, this is the final percentage of the 
  2253. original volume.  The display at the top of this dialog varies depending on the 
  2254. number of channels in the current sample. 
  2255.  
  2256.  
  2257. ΓòÉΓòÉΓòÉ 2.4. Rexx ΓòÉΓòÉΓòÉ
  2258.  
  2259. EdSndX integrates the features of REXX to provide a powerful command scripting 
  2260. capability.  EdSndX provides the necessary extensions to REXX to provide full 
  2261. access to all of the features normally provided through the dialogs of the user 
  2262. interface.  Unlike sound samples, only one REXX script can be open at a time. 
  2263. The REXX script runs as a subfunction of the control panel and provides a 
  2264. syntax which can manipulate each sample that is open through a handle which is 
  2265. returned to the REXX script with the sample is opened or created. 
  2266.  
  2267. Any REXX command script can be run through any of the means for opening a file 
  2268. such as using the OPEN dialog box or through a DRAG/DROP operation.  As with 
  2269. all REXX command scripts, the first line of the file must be a comment of the 
  2270. form /* ... */. PMsndX will automatically recognize a command script using the 
  2271. extension of .CMD or the OPEN dialog allows any file to be recognized as a 
  2272. command script by providing an override in the Format group of the OPEN dialog. 
  2273.  
  2274. As with any REXX script, the SAY command may be used to write to standard 
  2275. output (stdout); and, the PULL command may be used to retrieve information from 
  2276. standard input (stdin). When input is requested from the REXX window, the 
  2277. desktop focus will automatically be directed to the REXX window and it will be 
  2278. brought to the foreground. 
  2279.  
  2280. Note:  Do not use CHARIN to retrieve input from the keyboard. 
  2281.  
  2282.  The syntax of the language is divided up into groups associated with the 
  2283.  buttons on the main control panel. Additionally, a few other controls are 
  2284.  provided to enhance a script capability for enhancing the user interface. 
  2285.  
  2286.  When a REXX command script is run, a REXX OUTPUT window (see illustration 
  2287.  below)  is opened to display any outputs from the script.  By default, all 
  2288.  standard outputs (e.g. output from SAY commands or commands echoed) are 
  2289.  displayed in black.  Outputs from PMsndX commands is written in blue, and any 
  2290.  errors are written in red.  A REXX script can be stopped at any time by 
  2291.  closing the REXX OUTPUT window.  If no errors occur while executing the REXX 
  2292.  command script, the REXX OUTPUT window will automatically be dismissed.  If 
  2293.  errors occur, the window will remain open until the user closes it.  Only one 
  2294.  REXX OUTPUT window can be open at any one time so the window must be closed 
  2295.  before another REXX script can be run.  The colors used to display the REXX 
  2296.  output may be modified through the properties dialog. 
  2297.  
  2298.  Note:  As with REXX scripts, all commands can be entered in any combination of 
  2299.         lower and upper case.  For example, the following commands are 
  2300.         equivalent: "file open tmp.au", "FILE open TMP.AU", "FiLe OpEn TmP.Au". 
  2301.  
  2302.  
  2303. ΓòÉΓòÉΓòÉ 2.4.1. Syntax Conventions ΓòÉΓòÉΓòÉ
  2304.  
  2305. The extensions provided by EdSndX have been designed to utilize a consistent 
  2306. format.  The extensions are divided into three groups:  commands, functions, 
  2307. and arguments. 
  2308.  
  2309. REXX functions are those extensions provided by PMsndX which require that 
  2310. PMsndX return some value to the calling REXX script.  The function extensions 
  2311. use the arguments to specify the information that is to be returned. 
  2312.  
  2313. REXX arguments are the keywords and parameters which are added to commands and 
  2314. functions to provide information about the specific task to be performed.  All 
  2315. arguments follow a repetitive format which utilizes keywords which usually have 
  2316. associated parameters. 
  2317.  
  2318.  
  2319. ΓòÉΓòÉΓòÉ 2.4.1.1. Function Syntax ΓòÉΓòÉΓòÉ
  2320.  
  2321. REXX functions are composed of a name followed by keyword and parameter 
  2322. combinations separated by commas and enclosed in parenthesis.  Functions are 
  2323. used to return data to the calling REXX script and so always appear on the 
  2324. right side of an = character. 
  2325.  
  2326. The general syntax of a function is: 
  2327.  
  2328. X=FUNCTION(keyword, Parameter, [,keyword, Parameter,...]) 
  2329.  
  2330.  
  2331. ΓòÉΓòÉΓòÉ 2.4.1.2. Argument Syntax ΓòÉΓòÉΓòÉ
  2332.  
  2333. The Arguments used in EdSndX should be in order of a keyword followed 
  2334. immediately by a parameter (if one is necessary). All required 
  2335. keyword/parameter combinations must appear first, followed by any optional 
  2336. keyword/parameter combinations. 
  2337.  
  2338. To convey the syntax of the REXX extensions, the individual components are 
  2339. color keyed to indicate their use. The following legend should be referred to 
  2340. when reading the actual command and function syntax: 
  2341.  
  2342. FUNCTION: The name of the function is always first and is required. 
  2343.  
  2344. keyword:  Special keywords are used to indicate that a parameter is being 
  2345. specified for a command. The keywords of a command may be entered in any order 
  2346. but must be followed by their corresponding parameter. 
  2347.  
  2348. Parameters:  Portions of a command which are used as variable parameters can 
  2349. take on different formats and must be entered after the corresponding keyword. 
  2350.  
  2351. [...]:  Parameters which are optional will appear between brackets ([]). 
  2352. Anything between the brackets is not required for the command but may be added 
  2353. to modify the operation. 
  2354.  
  2355. When numeric values are required, the format will be indicated as follows: 
  2356.  
  2357. 'mm:ss.hhhh' indicates that a time is to be entered. The format indicates that 
  2358. the time is to be given in minutes followed by a colon (:), the number of 
  2359. seconds followed by a period (.) and the fractions of seconds.  For example, 
  2360. '10:58.0001' indicates 10 minutes, 58 seconds, and 1 ten-thousandth of a 
  2361. second.  Note that the time must be enclosed between single quotes. 
  2362.  
  2363. #.# indicates that a decimal number is to be entered.  The range for the number 
  2364. is provided in braces immediately following.  For example, #.#{0.0-1.0} 
  2365. indicates that a number between 0.0 and 1.0 inclusive is requred. 
  2366.  
  2367. #{range} indicates that a numeric value is required and the range is specified 
  2368. in the braces.  For example, #{1-8192} indicates that a numeric value between 1 
  2369. and 8192 inclusive is required. 
  2370.  
  2371. 'text' indicates that a text string is required.  The text must be enclosed in 
  2372. single quotes and must appear as the last parameter in the line.  All data 
  2373. after the keyword TEXT will be treated as the text for the operation. 
  2374.  
  2375. {item1,item2,...} is used to indicate that a finite set of values are required. 
  2376.  
  2377. Note:  The parameter YES is equivalent to setting a checkbox.  The parameter NO 
  2378.        is equivalent to clearing a checkbox. 
  2379.  
  2380.  Descriptions:  With each command group is a short description of the operation 
  2381.  of the commands in that group. Additionally, every command may also have 
  2382.  special information which is unique to the command or pertinent to the usage 
  2383.  of the command. 
  2384.  
  2385.  
  2386. ΓòÉΓòÉΓòÉ 2.4.2. File Operations ΓòÉΓòÉΓòÉ
  2387.  
  2388. All of the features of the OPEN and SAVE dialog boxes are available through the 
  2389. FILE operations.  In addition to the standard items in the dialog box, the 
  2390. capability to set the default OPEN and SAVE paths is provided to simplify batch 
  2391. operations. 
  2392.  
  2393. The FILE operations are provided through functions and return a handle which is 
  2394. used to reference the file.  There are two reasons that the FILE commands are 
  2395. implemented as functions instead of subcommands.  The parameters of a 
  2396. subcommand are separated by spaces or other special parameters which EdSndX 
  2397. does not receive even if the parameters are in quotations.  By using the 
  2398. function interface to REXX, PMsndX receives the necessary delimiters to allow 
  2399. filenames to contain special characters and spaces. 
  2400.  
  2401. x=FILE(OPENPATH, PATH) 
  2402.  
  2403. Filenames can be specified in any form (i.e. they may contain a drive letter, a 
  2404. file path, and the actual filename).  However, to make batch operations 
  2405. simpler, the path and drive may be specified using this command and any 
  2406. filenames without paths or drives will use the OPENPATH to locate the file.  By 
  2407. default, the current working directory will be used as the OPENPATH. 
  2408.  
  2409. x=FILE(SAVEPATH, PATH) 
  2410.  
  2411. When saving a file, a default path can be saved similar to the OPENPATH 
  2412. command.  All save operations in which the drive and path are not specified 
  2413. will use the specified path.  By default, the current working directory will be 
  2414. used as the SAVEPATH. 
  2415.  
  2416. handle=FILE(OPEN, filename, [FORMAT, {AU, AIF, AVI, HCM, SF, VOC, SMP, WAV, 
  2417. IFF}]) 
  2418.  
  2419. handle=FILE(OPEN, filename, [FORMAT, {UB, SB, UL}, RATE, #{1-65535}, CHANNELS, 
  2420. {1,2,4}]) 
  2421.  
  2422. handle=FILE(OPEN, filename, [FORMAT, {UW, SW}, RATE, #{1-65535}, CHANNELS, 
  2423. {1,2,4}, ENDIAN, {BIG, LITTLE}]) 
  2424.  
  2425. Filenames must contain the name of a valid file and may optionally include a 
  2426. drive letter and a specific path. If the path and drive letter are not 
  2427. specified, PMsndX will use the current working directory or the path specified 
  2428. in the OPENPATH command. 
  2429.  
  2430. x=FILE(HANDLE, handle SAVE, [FORMAT, {AU, AIF, HCM, SF, VOC, SMP, WAV, IFF, UB, 
  2431. SB, UL}]) 
  2432.  
  2433. x=FILE(HANDLE, handle, SAVEAS, filename, [FORMAT, {AU, AIF, HCM, SF, VOC, SMP, 
  2434. WAV, IFF, UB, SB, UL}]) 
  2435.  
  2436. x=FILE(HANDLE, handle, SAVE, [FORMAT, {UW, SW}, ENDIAN, {BIG, LITTLE}]) 
  2437.  
  2438. x=FILE(HANDLE, handle, SAVEAS, filename, [FORMAT, {UW, SW}, ENDIAN, {BIG, 
  2439. LITTLE}]) 
  2440.  
  2441. When the SAVE form is used, the current filename for the sample is used.  When 
  2442. the SAVEAS form is used, a valid filename must be provided.  Filenames must 
  2443. contain the name of a valid file and may optionally include a drive letter and 
  2444. a specific path. If the path and drive letter are not specified, PMsndX will 
  2445. use the current working directory or the path specified in the SAVEPATH 
  2446. command. 
  2447.  
  2448. x=FILE(HANDLE, handle, CLOSE) 
  2449.  
  2450. This closes the editor display for the file handle specified without saving. 
  2451.  
  2452.  
  2453. ΓòÉΓòÉΓòÉ 2.4.3. Audio Operations ΓòÉΓòÉΓòÉ
  2454.  
  2455. All operations available through the AUDIO section of the editor are accessible 
  2456. through the AUDIO Operations group.  The value returned for all AUDIO 
  2457. operations indicates the success of the operation. 
  2458.  
  2459. x=AUDIO(VOLUME, #{0-100}) 
  2460.  
  2461. The volume control is global across all editors and so there is no association 
  2462. of the VOLUME in the REXX script with a particular editor window. 
  2463.  
  2464. x=AUDIO(HANDLE, handle, PLAY, {ASYNC, SYNC}) 
  2465.  
  2466. The ASYNC option causes the sound to start playing and lets the REXX script 
  2467. continue.  The SYNC option causes the REXX script to pause while waiting for 
  2468. the playback to complete. 
  2469.  
  2470. x=AUDIO(HANDLE, handle, REWIND) 
  2471.  
  2472. handle=AUDIO(RECORD, {ASYNC, SYNC}, TIME, 'mm:ss.hhhh', INPUT, {MIC, LINE}, 
  2473. QUALITY, {8, 16}, CHANNELS, {1, 2}, RATE, #{1-65535}, [OVERWRITE, {YES, NO}], 
  2474. [MONITOR, {YES, NO}]) 
  2475.  
  2476. handle=AUDIO(RECORD, {ASYNC, SYNC}, COUNT, #{1-}, INPUT, {MIC, LINE}, QUALITY, 
  2477. {8, 16}, CHANNELS, {1, 2}, RATE, #{1-65535}, [OVERWRITE, {YES, NO}], [MONITOR, 
  2478. {YES, NO}]) 
  2479.  
  2480. handle=AUDIO(RECORD, {ASYNC, SYNC}, MEMORY, #{1-}, INPUT, {MIC, LINE}, QUALITY, 
  2481. {8, 16}, CHANNELS, {1, 2}, RATE, #{1-65535}, [OVERWRITE, {YES, NO}], [MONITOR, 
  2482. {YES, NO}]) 
  2483.  
  2484. When the AUDIO RECORD function is used, a new editor window is automatically 
  2485. created without a filename.  The return value for the record functions is the 
  2486. handle for the window which is of the same form as the handle returned from a 
  2487. FILE OPEN operation.  The SAVEAS form of the FILE function must be used when 
  2488. saving the new samples. 
  2489.  
  2490.  
  2491. ΓòÉΓòÉΓòÉ 2.4.4. Properties Operations ΓòÉΓòÉΓòÉ
  2492.  
  2493. All PROPERTIES functions return the current value of the property prior to 
  2494. changing it. 
  2495.  
  2496. x=PROPERTIES(ENABLE_MMPM, {YES, NO}) 
  2497.  
  2498. x=PROPERTIES(SHARE_AUDIO, {YES, NO}) 
  2499.  
  2500. x=PROPERTIES(PLAY_16ON8, {YES, NO}) 
  2501.  
  2502. x=PROPERTIES(DEVICE, devicename) 
  2503.  
  2504. x=PROPERTIES(MEMORY, AUTO) 
  2505.  
  2506. x=PROPERTIES(MEMORY, #{1-8192}) 
  2507.  
  2508. x=PROPERTIES(IGNORE_HEADER_STYLE, {YES, NO}) 
  2509.  
  2510. x=PROPERTIES(REQUIRE_AU_HEADER, {YES, NO}) 
  2511.  
  2512. x=PROPERTIES(FORCE_ULAW, {YES, NO, MAYBE}) 
  2513.  
  2514. x=PROPERTIES(INI_PATH, path) 
  2515.  
  2516. x=PROPERTIES(REXX_STDIN_COLOR, {BLACK, BLUE, RED, PINK, GREEN, CYAN, YELLOW, 
  2517. GREY, DGREY, DBLUE, DRED, DPINK, DGREEN, DCYAN, DYELLOW, LGREY}) 
  2518.  
  2519. x=PROPERTIES(REXX_STDOUT_COLOR, {BLACK, BLUE, RED, PINK, GREEN, CYAN, YELLOW, 
  2520. GREY, DGREY, DBLUE, DRED, DPINK, DGREEN, DCYAN, DYELLOW, LGREY}) 
  2521.  
  2522. x=PROPERTIES(REXX_STDERR_COLOR, {BLACK, BLUE, RED, PINK, GREEN, CYAN, YELLOW, 
  2523. GREY, DGREY, DBLUE, DRED, DPINK, DGREEN, DCYAN, DYELLOW, LGREY}) 
  2524.  
  2525. x=PROPERTIES(REXX_COMMAND_COLOR, {BLACK, BLUE, RED, PINK, GREEN, CYAN, YELLOW, 
  2526. GREY, DGREY, DBLUE, DRED, DPINK, DGREEN, DCYAN, DYELLOW, LGREY}) 
  2527.  
  2528. x=PROPERTIES(REXX_DISPLAY_HISTORY, #{64-32767}) 
  2529.  
  2530. x=PROPERTIES(FOOTNOTES, {YES, NO}) 
  2531.  
  2532. x=PROPERTIES(SAVE_POSITIONS, {YES, NO}) 
  2533.  
  2534. x=PROPERTIES(SAVE_OPENPATH, {YES, NO}) 
  2535.  
  2536. x=PROPERTIES(SAVE_SAVEPATH, {YES, NO}) 
  2537.  
  2538. x=PROPERTIES(PLAY_ON_COMMANDLINE_LOAD, {YES, NO}) 
  2539.  
  2540. x=PROPERTIES(EXIT_AFTER_COMMANDLINE_PLAY, {YES, NO}) 
  2541.  
  2542. x=PROPERTIES(FREE_MEMORY_AFTER_LOADING, {YES, NO}) 
  2543.  
  2544. x=PROPERTIES(ENABLE_QUICK_QUEUEING, {YES, NO}) 
  2545.  
  2546. x=PROPERTIES(AUTO_RATE_ADJUST, {YES, NO}) 
  2547.  
  2548. x=PROPERTIES(UNDO, {YES, NO}) 
  2549.  
  2550. x=PROPERTIES(USE_DISPLAYED_CHANNEL, {YES, NO}) 
  2551.  
  2552. x=PROPERTIES(USE_DISPLAYED_RANGE, {YES, NO}) 
  2553.  
  2554. X=PROPERTIES(EDITOR_INFO, {YES, NO}) 
  2555.  
  2556. X=PROPERTIES(EDITOR_ALL_CHANNELS, {YES, NO}) 
  2557.  
  2558. X=PROPERTIES(EDITOR_DELAY_AUDIO_LOADING, {YES, NO}) 
  2559.  
  2560. X=PROPERTIES(EDITOR_SETUP_AUDIO_AT_PLAY, {YES, NO}) 
  2561.  
  2562. X=PROPERTIES(EDITOR_AUTO_REPEAT, {YES, NO}) 
  2563.  
  2564. X=PROPERTIES(EDITOR_FORMAT_TIME, {YES, NO}) 
  2565.  
  2566. X=PROPERTIES(EDITOR_PLAY_MODE_RANGE, {YES, NO}) 
  2567.  
  2568.  
  2569. ΓòÉΓòÉΓòÉ 2.4.5. Edit Operations ΓòÉΓòÉΓòÉ
  2570.  
  2571. The value returned for all EDIT operations indicate the success of the 
  2572. operation. 
  2573.  
  2574. X=EDIT(HANDLE, handle, MANIPULATE, {ALL, 1, 2, 3, 4}) 
  2575.  
  2576. x=EDIT(HANDLE, handle, AREA, ENTIRE_SAMPLE) 
  2577.  
  2578. x=EDIT(HANDLE, handle, AREA, PART, START, 'mm:ss.hhhh', END, 'mm:ss.hhhh') 
  2579.  
  2580. x=EDIT(HANDLE, handle, {COPY, CUT, PASTE, ZERO, REMOVE, CLEAR, MERGE, UNDO}) 
  2581.  
  2582. x=EDIT(HANDLE, handle, {PASTEFROM, MERGEFROM}, handle) 
  2583.  
  2584.  
  2585. ΓòÉΓòÉΓòÉ 2.4.6. Effects Operations ΓòÉΓòÉΓòÉ
  2586.  
  2587. The value returned for all EDIT operations indicate the success of the 
  2588. operation. 
  2589.  
  2590. x=TOOLS(HANDLE, handle, FORMAT, {AU, AIF, HCM, SF, VOC, SMP, WAV, IFF, UB, SB, 
  2591. UL, UW, SW}) 
  2592.  
  2593. x=TOOLS(HANDLE, handle, AVERAGE, 2_TO_1, FROM, {LEFT, CENTER, RIGHT}) 
  2594.  
  2595. x=TOOLS(HANDLE, handle, AVERAGE, 4_TO_1, FROM, {FL, FR, RL, RR}, [FROM, {FL, 
  2596. FR, RL, RR}...]) 
  2597.  
  2598. x=TOOLS(HANDLE, handle, AVERAGE, 4_TO_2, FROM, {FL, FR, RL, RR}, TO, {L, R}, 
  2599. [FROM, {FL, FR, RL, RR}, TO, {L, R}...]) 
  2600.  
  2601. x=TOOLS(HANDLE, handle, DUPE, {1_TO_2, 1_TO_4}) 
  2602.  
  2603. x=TOOLS(HANDLE, handle, DUPE, 2_TO_4, FROM, {L, R}, TO, {FL, FR, RL, RR}, 
  2604. [FROM, {L, R}, TO, {FL, FR, RL, RR}...]) 
  2605.  
  2606. x=TOOLS(HANDLE, handle, RATE, #{1-65535}) 
  2607.  
  2608. x=TOOLS(HANDLE, handle, SPEED, #{1-65535}) 
  2609.  
  2610. x=TOOLS(HANDLE, handle, SPEED, {X2, X1/2}) 
  2611.  
  2612.  
  2613. ΓòÉΓòÉΓòÉ 2.4.6.1. Filter Effects Operations ΓòÉΓòÉΓòÉ
  2614.  
  2615. x=TOOLS(HANDLE, handle, FILTER, BANDPASS, START, #{1-65535}, CUTOFF, 
  2616. #{1-65535}, [ADD_NOISE, {YES, NO}]) 
  2617.  
  2618. x=TOOLS(HANDLE, handle, FILTER, BANDPASS, CENTER, #{1-65535}, WIDTH, 
  2619. #{1-65535}, [ADD_NOISE, {YES, NO}]) 
  2620.  
  2621. x=TOOLS(HANDLE, handle, FILTER, LOWPASS, CENTER, #{1-65535}, GAIN, 
  2622. #.#{0.0-1.0}) 
  2623.  
  2624.  
  2625. ΓòÉΓòÉΓòÉ 2.4.6.2. Special Effects Operations ΓòÉΓòÉΓòÉ
  2626.  
  2627. x=TOOLS(HANDLE, handle, EFFECT, ECHO, MARK, 'mm:ss.hhhh', VOLUME, #.#{0.0-1.0}, 
  2628. [MARK, 'mm:ss.hhhh', VOLUME, #.#{0.0-1.0}, ...]) 
  2629.  
  2630. x=TOOLS(HANDLE, handle, EFFECT, INVERT) 
  2631.  
  2632. x=TOOLS(HANDLE, handle, EFFECT, REVERSE) 
  2633.  
  2634. x=TOOLS(HANDLE, handle, EFFECT, VIBRO, SPEED, #{0-30}, DEPTH, #.#{0.0-1.0}) 
  2635.  
  2636. x=TOOLS(HANDLE, handle, EFFECT, FADE, DIRECTION, {IN, OUT}, METHOD, {LINEAR, 
  2637. SLOW, FAST}) 
  2638.  
  2639. x=TOOLS(HANDLE, handle, EFFECT, LIMIT, MAX, #{0-100}) 
  2640.  
  2641. x=TOOLS(HANDLE, handle, EFFECT, LIMIT, MULTIPLE, #.#{0.0-2.0}) 
  2642.  
  2643. x=TOOLS(HANDLE, handle, EFFECT, BALANCE2, L, #{0-100}, R, #{0-100}, DIRECTION, 
  2644. {IN, OUT}, METHOD, {LINEAR, SLOW, FAST, STEP}) 
  2645.  
  2646. x=TOOLS(HANDLE, handle, EFFECT, BALANCE4, FL, #{0-100}, FR, #{0-100}, RL, 
  2647. #{0-100}, RR, #{0-100}, DIRECTION, {IN, OUT}, METHOD, {LINEAR, SLOW, FAST, 
  2648. STEP}) 
  2649.  
  2650.  
  2651. ΓòÉΓòÉΓòÉ 2.4.7. User Operations ΓòÉΓòÉΓòÉ
  2652.  
  2653. EdSndX also provides a dialog method of user input through standard OS/2 
  2654. MESSAGE dialog boxes.  A message dialog provides the user with a means to 
  2655. present text with a dialog containing a icon and standard buttons along with 
  2656. standard OS/2 system sounds to catch the attention of the user.  Since a value 
  2657. is returned from the MESSAGE, it must be formatted as a function. 
  2658.  
  2659. x=MESSAGE(HANDLE, handle, ASK, {OK, OKCANCEL, CANCEL, ENTER, ENTERCANCEL, 
  2660. RETRYCANCEL, ABORTRETRYIGNORE, YESNO, YESNOCANCEL}, ICON, {NOICON, ICONHAND, 
  2661. QUESTION, EXCLAMATION, ASTERISK, INFORMATION, QUERY, WARNING, ERROR}, [MODE, 
  2662. {APPLICATION, SYSTEM},] [MOVEABLE, {YES, NO},] TEXT, 'text', TITLE, 'text') 
  2663.  
  2664. The ASK parameter determines the possible return values. The data returned is a 
  2665. string representing the button pressed by the user.  The possible return values 
  2666. are: 
  2667.  
  2668. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2669. ΓöéType            ΓöéReturn  Γöé
  2670. Γöé                Γöé        Γöé
  2671. ΓöéOK              ΓöéOK      Γöé
  2672. Γöé                Γöé        Γöé
  2673. Γöé                ΓöéERROR   Γöé
  2674. Γöé                Γöé        Γöé
  2675. ΓöéOKCANCEL        ΓöéOK      Γöé
  2676. Γöé                Γöé        Γöé
  2677. Γöé                ΓöéCANCEL  Γöé
  2678. Γöé                Γöé        Γöé
  2679. Γöé                ΓöéERROR   Γöé
  2680. Γöé                Γöé        Γöé
  2681. ΓöéCANCEL          ΓöéCANCEL  Γöé
  2682. Γöé                Γöé        Γöé
  2683. Γöé                ΓöéERROR   Γöé
  2684. Γöé                Γöé        Γöé
  2685. ΓöéENTER           ΓöéENTER   Γöé
  2686. Γöé                Γöé        Γöé
  2687. Γöé                ΓöéERROR   Γöé
  2688. Γöé                Γöé        Γöé
  2689. ΓöéENTERCANCEL     ΓöéENTER   Γöé
  2690. Γöé                Γöé        Γöé
  2691. Γöé                ΓöéCANCEL  Γöé
  2692. Γöé                Γöé        Γöé
  2693. Γöé                ΓöéERROR   Γöé
  2694. Γöé                Γöé        Γöé
  2695. ΓöéRETRYCANCEL     ΓöéRETRY   Γöé
  2696. Γöé                Γöé        Γöé
  2697. Γöé                ΓöéCANCEL  Γöé
  2698. Γöé                Γöé        Γöé
  2699. Γöé                ΓöéERROR   Γöé
  2700. Γöé                Γöé        Γöé
  2701. ΓöéABORTRETRYIGNOREΓöéABORT   Γöé
  2702. Γöé                Γöé        Γöé
  2703. Γöé                ΓöéRETRY   Γöé
  2704. Γöé                Γöé        Γöé
  2705. Γöé                ΓöéIGNORE  Γöé
  2706. Γöé                Γöé        Γöé
  2707. Γöé                ΓöéERROR   Γöé
  2708. Γöé                Γöé        Γöé
  2709. ΓöéYESNO           ΓöéYES     Γöé
  2710. Γöé                Γöé        Γöé
  2711. Γöé                ΓöéNO      Γöé
  2712. Γöé                Γöé        Γöé
  2713. Γöé                ΓöéERROR   Γöé
  2714. Γöé                Γöé        Γöé
  2715. ΓöéYESNOCANCEL     ΓöéYES     Γöé
  2716. Γöé                Γöé        Γöé
  2717. Γöé                ΓöéNO      Γöé
  2718. Γöé                Γöé        Γöé
  2719. Γöé                ΓöéCANCEL  Γöé
  2720. Γöé                Γöé        Γöé
  2721. Γöé                ΓöéERROR   Γöé
  2722. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2723.  
  2724. The following ICONs and the associated sounds for the dialog (from the System 
  2725. Events in the MMPM Sound setup): 
  2726.  
  2727.       NOICON - () - NONE 
  2728.       ICONHAND - () - Error sound 
  2729.       QUESTION - () - Information sound 
  2730.       EXCLAMATION - () - Warning sound 
  2731.       ASTERISK - () - NONE 
  2732.       INFORMATION - () - NONE 
  2733.       QUERY - () - Information sound 
  2734.       WARNING - () - Warning sound 
  2735.       ERROR - () - Error sound 
  2736.  
  2737.  The MODE specifies how the window is displayed with relation to other windows 
  2738.  on the system.  If no MODE keyword is specified or APPLICATION is specified, 
  2739.  then the dialog window will can be covered by other windows from the desktop. 
  2740.  If SYSTEM is specified, then the dialog box will prevent other windows on the 
  2741.  desktop from covering it. 
  2742.  
  2743.  The MOVEABLE keyword is used to determine if a titlebar is provided on the 
  2744.  message dialog box.  If the MOVEABLE keyword is not specified or if it is 
  2745.  specified as NO, then there will be no titlebar on the message dialog and it 
  2746.  cannot be moved around the screen.  Specifying YES allows the user to move the 
  2747.  message dialog box around the screen. 
  2748.  
  2749.  
  2750. ΓòÉΓòÉΓòÉ 2.4.8. Miscellaneous Operations ΓòÉΓòÉΓòÉ
  2751.  
  2752. The value returned for all EDIT operations indicate the success of the 
  2753. operation. 
  2754.  
  2755. x=PMSNDX(EXIT) 
  2756.  
  2757. The EXIT keyword sends a message to PMsndX to exit.  This is the same as 
  2758. clicking CLOSE on the system menu of the control panel. 
  2759.  
  2760. x=PMSNDX(UPDATEWINDOWS) 
  2761.  
  2762. The UPDATEWINDOWS keyword forces PMsndX to update all windows that are 
  2763. currently displayed.  During the processing of a REXX script, most windows are 
  2764. not updated when they are open.  Of course there are exceptions to this such as 
  2765. the EDITOR and the AUDIO dialogs in which updates are required to allow the 
  2766. user to maintain control over the current operation. 
  2767.  
  2768. x=PMSNDX(CLOSE, {YES,NO}) 
  2769.  
  2770. If no errors occur during the execution of a REXX script, the REXX output 
  2771. window will automatically close itself.  However, by specifying the CLOSE 
  2772. keyword and the parameter YES, the window can be forced to remain open.  In the 
  2773. event that an error occurs in the REXX script, this command has no effect. 
  2774.  
  2775. x=PMSNDX(IGNORE_SYNTAX_ERRORS, {YES,NO}) 
  2776.  
  2777. When writing REXX scripts for PMsndX, it may be desirable to pass the REXX 
  2778. through the interpreter to check the syntax of the commands without having 
  2779. PMsndX stop at each error.  When this option is turned on, PMsndX will still 
  2780. display the errors in RED, but will not stop after the error. 
  2781.  
  2782. x=PMSNDX(OUTPUT, {YES,NO}) 
  2783.  
  2784. By default, PMsndX displays each PMsndX command or function as it is executed. 
  2785. This output can be turned off with this command by specifying NO 
  2786.  
  2787. x=PMSNDX(TEST_MODE, {YES,NO}) 
  2788.  
  2789. By setting PMsndX into REXX TEST_MODE, REXX scripts will be processed as usual 
  2790. except that the commands will not actually be executed.  This option is 
  2791. primarily used during the testing of the REXX syntax parser during the 
  2792. development of PMsndX, and has been provided to allow scripts to be tested 
  2793. syntatically before using them. 
  2794.  
  2795. return 'text' 
  2796.  
  2797.  
  2798. ΓòÉΓòÉΓòÉ 2.4.9. Query/Test Operations ΓòÉΓòÉΓòÉ
  2799.  
  2800. The functions which make up the QUERY group return values which are identical 
  2801. to the parameters expected by the indicated command.  To determine the range of 
  2802. values that may be returned, see the corresponding command and keyword 
  2803. combinations. 
  2804.  
  2805. X=QUERY(FILE, OPENPATH) 
  2806.  
  2807. X=QUERY(FILE, SAVEPATH) 
  2808.  
  2809. X=QUERY(HANDLE, handle, FILE, FILENAME) 
  2810.  
  2811. X=QUERY(HANDLE, handle, INFO, FORMAT) 
  2812.  
  2813. X=QUERY(HANDLE, handle, INFO, DATASTYLE) 
  2814.  
  2815. X=QUERY(HANDLE, handle, INFO, CHANNELS) 
  2816.  
  2817. X=QUERY(HANDLE, handle, INFO, RATE) 
  2818.  
  2819. X=QUERY(HANDLE, handle, INFO, DATASIZE) 
  2820.  
  2821. X=QUERY(HANDLE, handle, INFO, SAMPLES) 
  2822.  
  2823. X=QUERY(HANDLE, handle, INFO, TIME) 
  2824.  
  2825. X=QUERY(HANDLE, handle, INFO, MEMORY) 
  2826.  
  2827. X=QUERY(HANDLE, handle, INFO, COMMENT) 
  2828.  
  2829. X=QUERY(HANDLE, handle, INFO, BYTEORDER) 
  2830.  
  2831. X=QUERY(HANDLE, handle, AUDIO, VOLUME) 
  2832.  
  2833. X=QUERY(HANDLE, handle, AUDIO, TIME) 
  2834.  
  2835. X=QUERY(HANDLE, handle, AUDIO, COUNT) 
  2836.  
  2837. X=QUERY(HANDLE, handle, AUDIO, MEMORY) 
  2838.  
  2839. X=QUERY(HANDLE, handle, AUDIO, INPUT) 
  2840.  
  2841. X=QUERY(HANDLE, handle, AUDIO, QUALITY) 
  2842.  
  2843. X=QUERY(HANDLE, handle, AUDIO, CHANNELS) 
  2844.  
  2845. X=QUERY(HANDLE, handle, AUDIO, RATE) 
  2846.  
  2847. X=QUERY(HANDLE, handle, AUDIO, OVERWRITE) 
  2848.  
  2849. X=QUERY(HANDLE, handle, AUDIO, MONITOR) 
  2850.  
  2851. X=QUERY(PROPERTIES, ENABLE_MMPM) 
  2852.  
  2853. X=QUERY(PROPERTIES, SHARE_AUDIO) 
  2854.  
  2855. X=QUERY(PROPERTIES, PLAY_16ON8) 
  2856.  
  2857. X=QUERY(PROPERTIES, DEVICE) 
  2858.  
  2859. X=QUERY(PROPERTIES, MEMORY) 
  2860.  
  2861. X=QUERY(PROPERTIES, IGNORE_HEADER_STYLE) 
  2862.  
  2863. X=QUERY(PROPERTIES, REQUIRE_AU_HEADER) 
  2864.  
  2865. X=QUERY(PROPERTIES, FORCE_ULAW) 
  2866.  
  2867. X=QUERY(PROPERTIES, INI_PATH) 
  2868.  
  2869. X=QUERY(PROPERTIES, REXX_STDIN_COLOR) 
  2870.  
  2871. X=QUERY(PROPERTIES, REXX_STDOUT_COLOR) 
  2872.  
  2873. X=QUERY(PROPERTIES, REXX_STDERR_COLOR) 
  2874.  
  2875. X=QUERY(PROPERTIES, REXX_COMMAND_COLOR) 
  2876.  
  2877. X=QUERY(PROPERTIES, REXX_DISPLAY_HISTORY) 
  2878.  
  2879. X=QUERY(PROPERTIES, FOOTNOTES) 
  2880.  
  2881. X=QUERY(PROPERTIES, SAVE_POSITIONS) 
  2882.  
  2883. X=QUERY(PROPERTIES, SAVE_OPENPATH) 
  2884.  
  2885. X=QUERY(PROPERTIES, SAVE_SAVEPATH) 
  2886.  
  2887. X=QUERY(PROPERTIES, PLAY_ON_COMMANDLINE_LOAD) 
  2888.  
  2889. X=QUERY(PROPERTIES, EXIT_AFTER_COMMANDLINE_PLAY) 
  2890.  
  2891. X=QUERY(PROPERTIES, FREE_MEMORY_AFTER_LOADING) 
  2892.  
  2893. X=QUERY(PROPERTIES, ENABLE_QUICK_QUEUEING) 
  2894.  
  2895. X=QUERY(PROPERTIES, AUTO_RATE_ADJUST) 
  2896.  
  2897. X=QUERY(PROPERTIES, UNDO) 
  2898.  
  2899. X=QUERY(PROPERTIES, USE_DISPLAYED_CHANNEL) 
  2900.  
  2901. X=QUERY(PROPERTIES, USE_DISPLAYED_RANGE) 
  2902.  
  2903. X=QUERY(PROPERTIES, EDITOR_INFO) 
  2904.  
  2905. X=QUERY(PROPERTIES, EDITOR_ALL_CHANNELS) 
  2906.  
  2907. X=QUERY(PROPERTIES, EDITOR_DELAY_AUDIO_LOADING) 
  2908.  
  2909. X=QUERY(PROPERTIES, EDITOR_SETUP_AUDIO_AT_PLAY) 
  2910.  
  2911. X=QUERY(PROPERTIES, EDITOR_AUTO_REPEAT) 
  2912.  
  2913. X=QUERY(PROPERTIES, EDITOR_FORMAT_TIME) 
  2914.  
  2915. X=QUERY(PROPERTIES, EDITOR_PLAY_MODE_RANGE) 
  2916.  
  2917. x=QUERY(PMSNDX, VERSION) 
  2918.  
  2919. Returns the current version number. 
  2920.  
  2921. x=QUERY(PMSNDX, REGISTERED) 
  2922.  
  2923. Returns {YES,NO} to indicate whether PMsndX has been registered. 
  2924.  
  2925. x=QUERY(PMSNDX, ERROR_OCCURRED) 
  2926.  
  2927. Returns {YES,NO} indicating whether an error has occurred.  If this is set to 
  2928. YES then the REXX output window will not close when the REXX script has 
  2929. completed execution. 
  2930.  
  2931. x=QUERY(PMSNDX, CLOSE) 
  2932.  
  2933. Returns {YES,NO} indicating whether the REXX script has told PMsndX not to 
  2934. close the REXX output window when the script completes. 
  2935.  
  2936. x=QUERY(PMSNDX, IGNORE_SYNTAX_ERRORS) 
  2937.  
  2938. Returns {YES,NO} indicating whether the PMsndX has been told to ignore errors. 
  2939.  
  2940. x=QUERY(PMSNDX, OUTPUT) 
  2941.  
  2942. Returns {YES,NO} indicating whether the PMsndX commands are echoed in the REXX 
  2943. output window. 
  2944.  
  2945. x=QUERY(PMSNDX, TEST_MODE) 
  2946.  
  2947. Returns {YES,NO} indicating that the PMsndX is in TEST_MODE. 
  2948.  
  2949.  
  2950. ΓòÉΓòÉΓòÉ 2.4.10. Animation Operations ΓòÉΓòÉΓòÉ
  2951.  
  2952. The value returned for all EDIT operations indicate the success of the 
  2953. operation. 
  2954.  
  2955. During the processing of a REXX script, the various dialogs may be 
  2956. automatically opened and the user may wish to "clean up" the screen before 
  2957. completing the rexx script.  A set of controls is provided to allow for user 
  2958. controlled animation of the desktop. 
  2959.  
  2960. x=DISPLAY(ABOUT, {YES, NO}) 
  2961.  
  2962. x=DISPLAY(WELCOME, {YES, NO}) 
  2963.  
  2964. x=DISPLAY(TOOLS, {YES, NO}) 
  2965.  
  2966. x=DISPLAY(TOOLPAGE, {INFO, FORMAT, CHANNELS, AVERAGE, DUPE, FILTER, BANDPASS, 
  2967. LOWPASS, SAMPLE, RATE, SPEED, EFFECT, ECHO, INVERT, REVERSE, VIBRO, VOLUME, 
  2968. FADE, LIMIT, BALANCE}) 
  2969.  
  2970. x=DISPLAY(OPEN, {YES, NO}) 
  2971.  
  2972. x=DISPLAY(PROPERTIES, {YES, NO}) 
  2973.  
  2974. x=DISPLAY(PROPPAGE, {AUDIO, MEMORY, MISC, REXX, STARTUP, PLSNDX, EDSNDX, 
  2975. EDITOR}) 
  2976.  
  2977.  
  2978. ΓòÉΓòÉΓòÉ 2.4.11. REXX return values ΓòÉΓòÉΓòÉ
  2979.  
  2980. Both FUNCTIONS and COMMANDS return error codes in the event that an error 
  2981. occurs when processing the commands.  The error codes are composed of two 8 bit 
  2982. numbers logically ORed together. 
  2983.  
  2984. The upper 8 bits of the return code indicates the command command group which 
  2985. caused the error.  The following table lists the possible values. 
  2986.  
  2987. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2988. ΓöéGroup               ΓöéValue       Γöé
  2989. Γöé                    Γöé            Γöé
  2990. ΓöéNo Error            Γöé0           Γöé
  2991. Γöé                    Γöé            Γöé
  2992. ΓöéUnknown             Γöé0x00000100  Γöé
  2993. Γöé                    Γöé            Γöé
  2994. ΓöéFILE                Γöé0x00000200  Γöé
  2995. Γöé                    Γöé            Γöé
  2996. ΓöéAUDIO               Γöé0x00000300  Γöé
  2997. Γöé                    Γöé            Γöé
  2998. ΓöéPROPERTIES          Γöé0x00000400  Γöé
  2999. Γöé                    Γöé            Γöé
  3000. ΓöéEDIT                Γöé0x00000500  Γöé
  3001. Γöé                    Γöé            Γöé
  3002. ΓöéTOOLS               Γöé0x00000600  Γöé
  3003. Γöé                    Γöé            Γöé
  3004. ΓöéMESSAGE             Γöé0x00000700  Γöé
  3005. Γöé                    Γöé            Γöé
  3006. ΓöéPMSNDX              Γöé0x00000800  Γöé
  3007. Γöé                    Γöé            Γöé
  3008. ΓöéQUERY               Γöé0x00000900  Γöé
  3009. Γöé                    Γöé            Γöé
  3010. ΓöéDISPLAY             Γöé0x00000a00  Γöé
  3011. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3012.  
  3013. The lower 8 bits of the result indicate the reason for the error. The possible 
  3014. values are listed in the following table. 
  3015.  
  3016. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3017. ΓöéError               ΓöéValue       Γöé
  3018. Γöé                    Γöé            Γöé
  3019. ΓöéNo Error            Γöé0           Γöé
  3020. Γöé                    Γöé            Γöé
  3021. ΓöéNOT IMPLEMENTED     Γöé0x00000001  Γöé
  3022. Γöé                    Γöé            Γöé
  3023. ΓöéBAD VALUE           Γöé0x00000002  Γöé
  3024. Γöé                    Γöé            Γöé
  3025. ΓöéUNKNOWN PARAMETER   Γöé0x00000003  Γöé
  3026. Γöé                    Γöé            Γöé
  3027. ΓöéUNKNOWN KEYWORD     Γöé0x00000004  Γöé
  3028. Γöé                    Γöé            Γöé
  3029. ΓöéUNKNOWN COMMAND     Γöé0x00000005  Γöé
  3030. Γöé                    Γöé            Γöé
  3031. ΓöéUNKNOWN FUNCTION    Γöé0x00000006  Γöé
  3032. Γöé                    Γöé            Γöé
  3033. ΓöéMISSING HANDLE      Γöé0x0000000e  Γöé
  3034. Γöé                    Γöé            Γöé
  3035. ΓöéINVALID HANDLE      Γöé0x0000000f  Γöé
  3036. Γöé                    Γöé            Γöé
  3037. ΓöéMISSING PARAMETER   Γöé0x00000007  Γöé
  3038. Γöé                    Γöé            Γöé
  3039. ΓöéMISSING KEYWORD     Γöé0x00000008  Γöé
  3040. Γöé                    Γöé            Γöé
  3041. ΓöéMISSING COMMAND     Γöé0X00000009  Γöé
  3042. Γöé                    Γöé            Γöé
  3043. ΓöéMISSING FUNCTION    Γöé0X0000000a  Γöé
  3044. Γöé                    Γöé            Γöé
  3045. ΓöéUNBALANCED KEYWORD  Γöé0x0000000b  Γöé
  3046. Γöé                    Γöé            Γöé
  3047. ΓöéEXTRA DATA          Γöé0x0000000c  Γöé
  3048. Γöé                    Γöé            Γöé
  3049. ΓöéDUPLICATE KEYWORD   Γöé0x0000000d  Γöé
  3050. Γöé                    Γöé            Γöé
  3051. ΓöéINVALID PATH        Γöé0x00000010  Γöé
  3052. Γöé                    Γöé            Γöé
  3053. ΓöéBAD FILE NAME       Γöé0x00000011  Γöé
  3054. Γöé                    Γöé            Γöé
  3055. ΓöéCANNOT CREATE NEW   Γöé0x00000015  Γöé
  3056. ΓöéFILE                Γöé            Γöé
  3057. Γöé                    Γöé            Γöé
  3058. ΓöéNO SAMPLES          Γöé0x00000012  Γöé
  3059. Γöé                    Γöé            Γöé
  3060. ΓöéCANNOT PLAYBACK     Γöé0x00000013  Γöé
  3061. Γöé                    Γöé            Γöé
  3062. ΓöéCANNOT RECORD       Γöé0x00000014  Γöé
  3063. Γöé                    Γöé            Γöé
  3064. ΓöéNO MMPM INSTALLED   Γöé0x00000020  Γöé
  3065. Γöé                    Γöé            Γöé
  3066. ΓöéMMPM NOT ENABLED    Γöé0x00000021  Γöé
  3067. Γöé                    Γöé            Γöé
  3068. ΓöéFREE MEMORY NOT     Γöé0x00000022  Γöé
  3069. ΓöéENABLED             Γöé            Γöé
  3070. Γöé                    Γöé            Γöé
  3071. ΓöéGENERAL FUNCTION    Γöé0x00000030  Γöé
  3072. ΓöéERROR               Γöé            Γöé
  3073. Γöé                    Γöé            Γöé
  3074. ΓöéGENERAL COMMAND     Γöé0x00000031  Γöé
  3075. ΓöéERROR               Γöé            Γöé
  3076. Γöé                    Γöé            Γöé
  3077. ΓöéPROGRAM NOT         Γöé0x000000ff  Γöé
  3078. ΓöéREGISTERED          Γöé            Γöé
  3079. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3080.  
  3081.  
  3082. ΓòÉΓòÉΓòÉ 3. PlSndX ΓòÉΓòÉΓòÉ
  3083.  
  3084.                                    PMsndX 2.11
  3085.                                        by
  3086.                                 William S. Hiles
  3087.                              copyright WiSHware Inc.
  3088.  
  3089. PlSndX is part of the family of programs grouped under the name PMsndX  Plsndx 
  3090. has been designed to utilize the capability developed in EdSndX for loading and 
  3091. saving many formats. This tool has been optimized to provide options which let 
  3092. the program minimize memory requirements for playback and has the same 
  3093. drag/drop features of the EdSndX program. 
  3094.  
  3095. Many of the features of PlSndX will seem familiar to anyone using EdSndX 
  3096. because they share the same libraries for most of the code.  The advantage to 
  3097. this is that any fixes made to either program are automatically reflected in 
  3098. the other program. 
  3099.  
  3100. PlSndX is not intended to provide any editing capabilities but does have the 
  3101. capability to save a file once loaded. This feature has been retained to allow 
  3102. a file to be saved in any of the supported formats after the file has been 
  3103. loaded from another application.  Such an example is the IBM WebExplorer where 
  3104. a sound file may be brought down over the net and played with PlSndX.  If the 
  3105. Free memory after loading feature has not been enabled, PlSndX can be used to 
  3106. save the sample to disk in any format that the operator chooses. 
  3107.  
  3108. A number of features of PlSndX sets it apart from other sound players.  These 
  3109. include the ability to automatically detects if another copy of the player is 
  3110. running and saves resources by communicating with the running copy of PlSndX to 
  3111. load the files, double buffering for quick playback, and automatic rate 
  3112. adjustment to ensure proper playback. 
  3113.  
  3114.  
  3115. ΓòÉΓòÉΓòÉ 3.1. Control Panel ΓòÉΓòÉΓòÉ
  3116.  
  3117. PlSndX utilizes the same concept as EdSndX in that it has a control panel that 
  3118. serves as the point of control for the program.  From this control panel, the 
  3119. operator may control playback of a sample, volume for the audio system, or 
  3120. lauch windows to utilize features of the program.  The control panel for PlSndX 
  3121. is shown below. 
  3122.  
  3123. The controls of interest for PlsndX are: 
  3124.  
  3125.  System Menu     The system menu for the control panel 
  3126.  Stop button     Stop audio playback 
  3127.  Play button     Start audio playback 
  3128.  Rewind button   Rewind the current play position 
  3129.  Volume control  Adjust the playback volume 
  3130.  
  3131.  
  3132. ΓòÉΓòÉΓòÉ 3.2. System Menu ΓòÉΓòÉΓòÉ
  3133.  
  3134. Like any other OS/2 program, PlSndX provides a system menu which is used to 
  3135. access the standard controls for manipulating the application on the desktop. 
  3136. The following figure illustrates the system menu for PlSndX. 
  3137.  
  3138. Notice that the Open... and Save as... items are placed in the system menu 
  3139. because PlSndX does not have a menu bar for these items. 
  3140.  
  3141. The menu items provided in the system menu are: 
  3142.  
  3143.  Restore        Restore the windows after being minimized 
  3144.  Move           Move the control window 
  3145.  Size           Resize the main control panel 
  3146.  Minimize       Minimize all of the windows of EdSndX to an icon 
  3147.  Close          Close the all windows and exit 
  3148.  Help           Bring up the help system 
  3149.  Properties     Change program operational parameters 
  3150.  Open...        Read a file from disk 
  3151.  Save as...     Save a file to disk* 
  3152.  
  3153.  Note:  * The Save as... menu item is disabled whenever a sample has not been 
  3154.         loaded or when it has been discarded because the Free memory after 
  3155.         loading option has been selected 
  3156.  
  3157.  
  3158. ΓòÉΓòÉΓòÉ 3.2.1. Resizing the control panel ΓòÉΓòÉΓòÉ
  3159.  
  3160. PlSndX provides a border for resizing the control panel. However, unlike 
  3161. EdSndX, the buttons for the control panel will not resize to fit the window. 
  3162. The buttons are bitmaps which are animated during playback.  As a result, large 
  3163. bitmaps would take more time and processor resources to animate so the size of 
  3164. the buttons has been fixed to be mathematically proportional to the default 
  3165. font size for the window.  The buttons are twice the maximum height of the 
  3166. font.  The volume button is set to be the maximum height of the font plus about 
  3167. 5 pixels in either direction. 
  3168.  
  3169.  
  3170. ΓòÉΓòÉΓòÉ 3.2.2. Drag and Drop ΓòÉΓòÉΓòÉ
  3171.  
  3172. The control panel is also the place to receive drag/drop operations.  Such 
  3173. operations are accomplished by dragging a sound file to the control panel and 
  3174. dropping it on anywhere within the border of the panel and below the titlebar. 
  3175. PlSndX will automatically load the sample into memory and load the MMPM buffers 
  3176. in preparation for playback. See drag/drop for more information on  performing 
  3177. drag/drop operations. 
  3178.  
  3179.  
  3180. ΓòÉΓòÉΓòÉ 3.2.3. Buttons ΓòÉΓòÉΓòÉ
  3181.  
  3182. PlSndX provides the minimum size application to provide the controls necessary 
  3183. to provide playback of a sample.  It does not provide a record button.  The 
  3184. buttons are generally animated such that during playback, the face of the 
  3185. buttons moves to indicate the action being performed. 
  3186.  
  3187.  
  3188. ΓòÉΓòÉΓòÉ 3.2.3.1. Stop ΓòÉΓòÉΓòÉ
  3189.  
  3190. The Stop button is the one to the farthest left on the control panel and is 
  3191. used to stop playback.  If playback has already been stopped, this button is 
  3192. disabled as indicated by a greyed out look to the button. 
  3193.  
  3194. PlSndx does not automatically rewind a sample when the stop button is pressed. 
  3195.  
  3196.  
  3197. ΓòÉΓòÉΓòÉ 3.2.3.2. Play ΓòÉΓòÉΓòÉ
  3198.  
  3199. The play button is the primary point of action for PlSndX. The play button is 
  3200. an animated button which displays a moving arrow during playback.  It also 
  3201. overlays the current time index on the playback button to provide a reference 
  3202. for how much time has elapsed in the sample. A sample can be played in a number 
  3203. of different ways. 
  3204.  
  3205. A sample may be played by loading it into memory through either the open dialog 
  3206. from the system menu or through drag/drop operations and then pressing the play 
  3207. button after the buffers have been loaded. 
  3208.  
  3209. If the Play on Commandline load property has been selected, the sample can be 
  3210. played immediately after the buffers have been set up when the sample is loaded 
  3211. from the command line.  This is one of the primary uses of PlSndX in that it 
  3212. can load a sample from the command line and play it immediately.  This can also 
  3213. be combined with the Exit after commandline play property to automatically 
  3214. terminate PlSndX after it has played all samples on the command line.  This is 
  3215. particularly useful when the program is used to play samples that are 
  3216. downloaded through an internet connection through a WEB explorer. 
  3217.  
  3218. When multiple file selections are made or when multiple files are queued up for 
  3219. playback through either the commandline or pipes, the file must play in its 
  3220. entirity before the next file is loaded.  If playback is stopped, playback will 
  3221. continue from the point where it left off and the sample will be played in its 
  3222. entirity before moving on to the next file.  When the repeat option is enabled, 
  3223. PlSndX will not move on to the next sample until the repeat feature is 
  3224. disabled. 
  3225.  
  3226.  
  3227. ΓòÉΓòÉΓòÉ 3.2.3.3. Rewind ΓòÉΓòÉΓòÉ
  3228.  
  3229. PlSndX does not automatically rewind a sample after playback has been stopped. 
  3230. When playback is stopped, the rewind button will be enabled so that the 
  3231. position of playback may be started at the beginning. 
  3232.  
  3233.  
  3234. ΓòÉΓòÉΓòÉ 3.2.3.4. Volume ΓòÉΓòÉΓòÉ
  3235.  
  3236. The volume control for PlSndX is identical to that of EdSndX.  The volume 
  3237. control is a sliding bar which sets the volume to a percentage of the maximum 
  3238. volume for the audio device.  The operation of the volume control is similar to 
  3239. a standard slider except that it does not have an associated button.  Rather, 
  3240. it is like an analog volume control such that the slider moves to the right and 
  3241. left using the mouse and the width of the slider indicates the volume. 
  3242. Additionally, the actual percentage of the volume is indicated in the display 
  3243. for convenience. 
  3244.  
  3245. The slider may be moved using the mouse button or the normal keys associated 
  3246. with scroll bars.  By selecting the area near the edge of the sliding portion 
  3247. of the control, the slider can be captured and the mouse can be used to drag 
  3248. the volume to the desired position.  If playback is occurring, the effect is 
  3249. immediately heard.  The area to the left or right of the slider edge may also 
  3250. be selected with the first mouse button to move the slider one percent up or 
  3251. down depending on the position that is selected.  Holding the mouse down causes 
  3252. the slider to increase at a rate of about 1 percent per tenth of a second. 
  3253. Finally, the second mouse button may be used to move the slider to a specific 
  3254. position quickly. 
  3255.  
  3256.  
  3257. ΓòÉΓòÉΓòÉ 4. Drag and Drop ΓòÉΓòÉΓòÉ
  3258.  
  3259. All PMsndX programs supports Drag and Drop of all sound files other than the 
  3260. RAW formats and performs a COPY operation when a file is dropped onto any of 
  3261. the PMsndX programs. To use this capability, the sound samples must be stored 
  3262. in a file.  If an application attempts to transfer data without specifying a 
  3263. filename, PMsndX will request that the application RENDER the file before 
  3264. transferring it to PMsndX.  The request for rendering the file before transfer 
  3265. is transparent to the user, but not all applications are capable of rendering 
  3266. and may not be able to transfer the file to EdSndX. 
  3267.  
  3268. To drag a sample to PMsndX, use the second mouse button (usually the right 
  3269. mouse button) to select the file.  While holding the second mouse button down, 
  3270. move the mouse pointer over the PMsndX control panel and lift the mouse button. 
  3271. PMsndX will then attempt to load the file using the same rules as the Open 
  3272. dialog function uses. 
  3273.  
  3274.  
  3275. ΓòÉΓòÉΓòÉ 5. Properties ΓòÉΓòÉΓòÉ
  3276.  
  3277. PMsndX can store a number of properties (user options) that users commonly set 
  3278. in a file called pmsndx.ini.  The location of this file may be specified only 
  3279. if PMsndX is registered; otherwise, the file will be located wherever the 
  3280. executable program is started. From the PROPERTIES dialog box the user may 
  3281. select to save the current window positions, open and save file path, maximum 
  3282. memory, MMPM/2 options, and REXX options. 
  3283.  
  3284. After the user has set all of the information in the PROPERTIES dialog box, the 
  3285. ACCEPT button must be used to save the changes. When this button is pressed, 
  3286. the changes are applied. 
  3287.  
  3288. Note:  Changes to the maximum memory will be checked when a new sample is 
  3289.        loaded or when an opertion that requires memory is attempted. 
  3290.  
  3291.  To restore the PROPERTIES box to the settings the last time the APPLY button 
  3292.  was pressed, the CANCEL button can be used.  All information entered by the 
  3293.  user is cleared and the PROPERTIES remain unchanged. 
  3294.  
  3295.  The window positions and file paths are maintained as long as PMsndX is 
  3296.  running.  When PMsndX is terminated, it will not save the current positions 
  3297.  and paths for file operations unless the boxes are checked in the PROPERTIES 
  3298.  dialog box.  Selecting these buttons has no effect on remembering the current 
  3299.  window positions during a single session; rather, they only affect saving the 
  3300.  information between sessions. 
  3301.  
  3302.  Note:  The information in the PROPERTIES dialog box is only saved when the 
  3303.         program is terminated. 
  3304.  
  3305.  Finally, to remove the Properties dialog box from the screen, select close 
  3306.  from the system menu of the properties dialog or double click on the system 
  3307.  menu icon for the properties dialog.  If the APPLY button has not been 
  3308.  pressed, any changes made to the display will be lost. 
  3309.  
  3310.  
  3311. ΓòÉΓòÉΓòÉ 5.1. Audio Properties ΓòÉΓòÉΓòÉ
  3312.  
  3313. Enable MMPM/2 Support 
  3314.  
  3315. PMsndX supports playing samples from memory directly to the MMPM/2 digital 
  3316. audio device of OS/2.  This allows samples to be played without having to save 
  3317. the sample to disk in the native .WAV format.  The PROPERTIES dialog box 
  3318. provides controls for disabling or enabling MMPM/2 support and for controlling 
  3319. the actions taken when a file is loaded Additionally, the digital audio device 
  3320. may be specified. 
  3321.  
  3322. If the MMPM/2 capabilities of the program are not needed or if MMPM/2 support 
  3323. is not installed on a particular system, the MMPM/2 may be disabled from the 
  3324. PROPERTIES dialog box.  By disabling the MMPM/2 support, the button on the main 
  3325. control panel for AUDIO is disabled.  By default the program will enable MMPM/2 
  3326. support.  If MMPM/2 is available but disabled and the AUDIO button is selected, 
  3327. a message is displayed to the user to indicate that the setting should be 
  3328. turned on from the PROPERTIES dialog box. 
  3329.  
  3330. The controls for MMPM/2 and the ability to play the "playlist" using MMPM/2 
  3331. utilize the files SW.DLL and MDM.DLL.  These are part of the standard MMPM/2 
  3332. distribution and must be present in the DLL path for the MMPM/2 portion of this 
  3333. program to operate.  The MMPM/2 support is not linked into the executable of 
  3334. this program.  Rather, it is only loaded when the user enables it.  This allows 
  3335. the program to run on machines which do not have MMPM/2 installed. 
  3336.  
  3337. The MMPM/2 functionality of PMsndX has been implemented to share the audio 
  3338. device with other programs on the system. However, by disabling the MMPM/2 
  3339. support, the audio device is freed up completely. 
  3340.  
  3341. Share audio device 
  3342.  
  3343. The audio device can be shared with the system such that while a sound is 
  3344. playing, it may be interrupted by system sounds. Sharing the audio device 
  3345. allows sounds to interrupt playback but may be desirable at all times.  When 
  3346. the audio sharing is disabled, system sounds will come out of the standard 
  3347. speaker in the form of a beep. 
  3348.  
  3349. Play 16 bits on 8 bit audio 
  3350.  
  3351. The Play 16 bits on 8 bit audio option allows 16 bit samples to be played on 8 
  3352. bit audio adaptor.  By default, whenever any PMsndX program is started, it will 
  3353. interrogate the audio device to determine the capabilities and automatically 
  3354. play 16 bit samples on 8 bit adapters if the adapter does not support 16 bit 
  3355. playback.  This feature can be overridden by setting or clearing the checkbox; 
  3356. however, the changes made to this box are not saved between sessions and will 
  3357. automatically be set whenever the program is started.  This box can be set and 
  3358. cleared to allow the user to determine the overall effect of the setting on 
  3359. audio playback.  Although most samples will produce square waves (resulting in 
  3360. noisy results), some will play (most notably .au files).  Although the data is 
  3361. sent to the audio device in 8 bit format, it is still maintained in its 
  3362. original format and all manipulations including saving the file are performed 
  3363. in the original size of the file. 
  3364.  
  3365. Note:  When this option is selected, all files are played as 8 bit samples 
  3366.        regardless of what is supported by the audio adapter.  Use this option 
  3367.        only if you have an 8 bit card! 
  3368.  
  3369.  EOF detection zone 
  3370.  
  3371.  When playing a file, PMsndX must detect when the cuepoint reported by MMPM/2 
  3372.  is near the end of the file so that it can rewind it.  Unfortunately, the 
  3373.  cuepoint must be converted to an index value and then compaired to the length 
  3374.  of a sample and the roundoff of that conversion creates a window or zone which 
  3375.  the cuepoint cannot exist.  To compensate for this, an End Of File detection 
  3376.  zone is provided which is used to determine if the playback needs to be 
  3377.  rewound.  This zone must be set sufficiently small so that playback is not 
  3378.  rewound whenever playback is stopped. A default value of 300 has proven to be 
  3379.  a good zone but the value can be adjusted by the user if necessary. The range 
  3380.  of values for this settings is between 0 and 32767. 
  3381.  
  3382.  Note:  Playback does not stop till either the stop button or the MMPM/2 system 
  3383.         reports an end of file condition regardless of this setting.  This 
  3384.         setting only affects the behaviour of playback when playback is 
  3385.         restarted once the end of file has been reached. 
  3386.  
  3387.  Device 
  3388.  
  3389.  Obviously not every machine has the same digital audio device.  PMsndX 
  3390.  provides a means to use a different audio device than the default digital 
  3391.  audio interface.  By default the device name is Waveaudio01.  Any Waveaudio 
  3392.  device may be selected by entering the device name in the Device entry field. 
  3393.  
  3394.  Note:  Setting the audio device to an invalid string will cause random errors. 
  3395.         The worst case is the PMsndX will crash whenever the AUDIO dialog is 
  3396.         opened.  To reset the audio device back to Waveaudio01, clear this 
  3397.         field and then exit PMsndX.  When PMsndX is reloaded, it will reset the 
  3398.         device to Waveaudio01. 
  3399.  
  3400.  
  3401. ΓòÉΓòÉΓòÉ 5.2. Memory Properties ΓòÉΓòÉΓòÉ
  3402.  
  3403. Auto 
  3404.  
  3405. PMsndX takes advantage of OS/2's advanced memory management facilities.  When 
  3406. the program is started, it only takes up the memory required for the executable 
  3407. to load.  PMsndX then only requests memory from OS/2 when an operation requires 
  3408. storage space for a sample.  The maximum memory limitation is provided to avoid 
  3409. overcommitting the memory in the system and creating a large swap file. 
  3410.  
  3411. Memory is primarily used to hold samples for operations; however, whenever the 
  3412. sound is manipulated in such a way that either the output has a different 
  3413. number of samples or the operation requires the samples to remain in tact 
  3414. during the entire operation, additional memory is used to hold the new data. 
  3415. Once the operation has been completed, the memory is freed unless the UNDO 
  3416. feature is enabled. When setting the maximum memory, the user must take into 
  3417. account the size of the data in memory as well as the size of the results of 
  3418. any operations. With the exception of Sampling Rate changes, the maximum memory 
  3419. requirements will not exceed twice the size of a sample.  When changing rate, 
  3420. the size is dependent on the new sampling rate.  If the new rate is higher than 
  3421. the current rate, the memory requirements will increase.  If the new rate is 
  3422. lower than the original rate, the memory requirements will shrink. 
  3423.  
  3424. If the user selects the AUTO mode for memory (the default), PMsndX will request 
  3425. as much memory as OS/2 will give it. 
  3426.  
  3427. If the user chooses to limit the memory to a specific value, the AUTO checkbox 
  3428. can be turned off and a value may be entered.  Since the minimum OS/2 memory 
  3429. block size is 4096 (4k) bytes, the user may specify the number of 4k pages for 
  3430. the limit.  The user may either use the up and down arrows to increment or 
  3431. decrement the amount of memory or may place the cursor in the window and type 
  3432. the specific value. 
  3433.  
  3434.  
  3435. ΓòÉΓòÉΓòÉ 5.3. Misc Properties ΓòÉΓòÉΓòÉ
  3436.  
  3437. Ignore unknown header blocks 
  3438.  
  3439. Many sound formats contain optional header blocks and user defined header 
  3440. blocks which PMsndX may not support.  By default, PMsndX will warn the user 
  3441. when it encounters an unsupported header block.  By selecting this option, 
  3442. PMsndX will not display the warning. 
  3443.  
  3444. Note:  When the unsupported header block warning is displayed, PMsndX provides 
  3445.        the option of disabling the warning by selecting YES.  This is not the 
  3446.        same as the Ignore unknown header blocks option and only disables the 
  3447.        warning for the current session of PMsndX. 
  3448.  
  3449.  Require header in .au files 
  3450.  
  3451.  Samples taken from a Sun usually contain a header but there are files which do 
  3452.  not.  Typically a Sun file will not contain a header if the sample is recorded 
  3453.  from the audio device as if it were a file (e.g. "cat < /dev/audio > 
  3454.  sample.au").  By default, PMsndX will recognize the extension of .au and force 
  3455.  a headerless file to be loaded as a sun file with a sampling rate of 8012 Hz. 
  3456.  When this option is selected, headerless Sun files must be loaded using the 
  3457.  format RAW .ul format.  This method for loading headerless Sun files allows 
  3458.  the user to specify the sampling rate for the file. 
  3459.  
  3460.  Force all .AU to ULaw 
  3461.  
  3462.  PMsndX is capable of loading and saving .AU files formatted with ULAW, LINEAR 
  3463.  8 (signed 8 bit), and LINEAR 16 (signed 16 bit) samples.  Since the ULAW 
  3464.  format is a lossy compression technique, it is best to save data in its native 
  3465.  8 or 16 bit format.  Some machines cannot play .AU files unless they are 
  3466.  stored in ULaw format and PMsndX has settings which allow the user to control 
  3467.  the action taken when a file is saved which is not ULaw. 
  3468.  
  3469.  The Force all .AU to ULaw setting is a tri-state checkbox. When the box is 
  3470.  cleared, PMsndX will save the data in the best format to match the current 
  3471.  format.  When the button is in the checked state (indiated by a checkmark in 
  3472.  the box), PMsndX will always save the data in ULaw format regardless of the 
  3473.  current format.  When the box is set in the intermediate state (a greyed out 
  3474.  box), PMsndX will present the user with the following message: 
  3475.  
  3476.  The current data format is not ULAW.  The .AU file format supports this dtaa 
  3477.  type; however, some systems only support the ULAW format. 
  3478.  
  3479.  At that time, the user may select to either force the file to become ULaw or 
  3480.  to allow PMsndX to save in the most accurate format for that data. 
  3481.  
  3482.  If you find that a .AU sample cannot be played on another platform and results 
  3483.  in noise or an error, try saving the data in the ULaw format to correct the 
  3484.  problem. 
  3485.  
  3486.  Location of .INI 
  3487.  
  3488.  By default, the file pmsndx.ini is stored at the location of the executable 
  3489.  program.  However, this location may be changed by modifying this field.  The 
  3490.  path is tested for validity when the parameters are applied; and, if the path 
  3491.  is found to be invalid, and error is displayed and the current path is left 
  3492.  unchanged. If the path is blank, the default path will be restored. 
  3493.  
  3494.  Note:  This option is only valid when the program is registered.  The data for 
  3495.         the path to the pmsndx.ini file is stored in the os2.ini file which is 
  3496.         only modified if the program is registered to prevent storing data in 
  3497.         the os2.ini when a user is just testing out the program. 
  3498.  
  3499.  
  3500. ΓòÉΓòÉΓòÉ 5.4. REXX Properties ΓòÉΓòÉΓòÉ
  3501.  
  3502. STDIN color 
  3503.  
  3504. This defines the color of text read from STDIN in the REXX output window.  By 
  3505. default, this is set to BLACK. 
  3506.  
  3507. STDOUT color 
  3508.  
  3509. This defines the color of text written to STDOUT in the REXX output window.  By 
  3510. default, this is set to BLACK. 
  3511.  
  3512. STDERR color 
  3513.  
  3514. This defines the color of text written to STDERR in the REXX output window.  By 
  3515. default, this is set to RED. 
  3516.  
  3517. COMMAND color 
  3518.  
  3519. This defines the color of the PMsndX commands written in the REXX output 
  3520. window.  By default, this is set to GREEN. 
  3521.  
  3522. REXX display history 
  3523.  
  3524. Setting the number in the entry field for this item modifies the number of 
  3525. lines maintained by the REXX output window and may take on values between 64 
  3526. and 0x7fff.  The default is 64 Changes made to this value will be used on 
  3527. successive REXX command scripts.  Each line of REXX output reserves 256 
  3528. characters of data and as a result, the number of rexx lines maintained for 
  3529. history impacts the memory requirements of the program while REXX is running. 
  3530.  
  3531. Note:  Changes to the REXX display history parameter does not take effect till 
  3532.        the next command script.  (i.e. If a REXX output window is open when 
  3533.        this parameter is changed, the number of lines currently held is not 
  3534.        changed.) 
  3535.  
  3536.  
  3537. ΓòÉΓòÉΓòÉ 5.5. Startup Properties ΓòÉΓòÉΓòÉ
  3538.  
  3539. Show Footnote window 
  3540.  
  3541. PMsndX can display a window at the bottom of the main control panel with text 
  3542. indicating the action of each of the items under the mouse pointer.  When this 
  3543. box is set, the window is displayed. 
  3544.  
  3545. Note:  The effect of setting this item will not be seen until EdSndX is 
  3546.        restarted. 
  3547.  
  3548.  Save Window positions 
  3549.  
  3550.  During a session, the user can move any of the dialog boxes around on the 
  3551.  screen.  If the WINDOW POSITIONS box is checked, these window positions will 
  3552.  be saved when the program is terminated.  If this button is deselected before 
  3553.  the program is terminated, the next session will revert to the previous window 
  3554.  positions saved by the program.  By default, if no window position has been 
  3555.  saved for a particular window, the window will be opened in the lower left 
  3556.  corner of the desktop. 
  3557.  
  3558.  Save file Open paths 
  3559.  
  3560.  The cache of files that have been successfully opened may be saved between 
  3561.  sessions by selecting the Save file Open path checkbox.  If this button is 
  3562.  deselected before the program is terminated, the next session will revert to 
  3563.  the paths from the previous session. If no information is saved for the 
  3564.  program at any time, the current path will become the default path for open 
  3565.  operations. 
  3566.  
  3567.  Save file Save paths 
  3568.  
  3569.  The cache of files that have been successfully saved may be saved between 
  3570.  sessions by selecting the Save file Save path checkbox.  If this button is 
  3571.  deselected before the program is terminated, the next session will revert to 
  3572.  the path from the previous session. If no information has not been saved 
  3573.  between sessions, the current path will become the default path for save 
  3574.  operations. 
  3575.  
  3576.  
  3577. ΓòÉΓòÉΓòÉ 5.6. PlSndX Specific Properties ΓòÉΓòÉΓòÉ
  3578.  
  3579. The information for this page applies only to PlSndX but can be set from any 
  3580. PMsndX application. 
  3581.  
  3582. Automatic rate adjust 
  3583.  
  3584. When this feature is enabled, PlSndX will automatically adjust the rate of the 
  3585. sample to the nearest multiple of 11025 Hz.  This feature is provided so that 
  3586. samples which have odd rates can still be played. 
  3587.  
  3588. Note:  Rate adjustment is only necessary when the sampling rate of the loaded 
  3589.        sample is not a multiple of 11025 Hz.  When rate adjustment is necessary 
  3590.        and this feature is enabled, the play button will display "Adj Rate" 
  3591.        while the rate effect is being applied. 
  3592.  
  3593.  Play on commandline load 
  3594.  
  3595.  When the Play on commandline load box is selected, a sample will be played 
  3596.  when specified on the command line.  The AUDIO dialog is opened after the file 
  3597.  has been loaded to allow for user control.  This feature can be used in 
  3598.  conjunction with the Exit after commandline play to allow a sample to be 
  3599.  played from the command line such that control is returned to the calling 
  3600.  program after playback has completed. 
  3601.  
  3602.  If this parameter is not specified, the sample will still be loaded from the 
  3603.  command line; however, it will not be played until the play button is pressed. 
  3604.  
  3605.  Exit after commandline play 
  3606.  
  3607.  The Exit after commandline play option provides the ability for PlSndX to exit 
  3608.  after playing the sample when the file is loaded from the command line.  This 
  3609.  is primarily intended to provide a means to play any of the supported formats 
  3610.  from the command line. 
  3611.  
  3612.  Free memory after loading 
  3613.  
  3614.  When this feature is enabled, the original generic format sample data is 
  3615.  automatically deleted after the sample has been converted to the proper 
  3616.  buffers for the MMPM/2 audio system. This has the advantage that the overall 
  3617.  memory requirements for a particular sample to play is reduced; however, it 
  3618.  has the negative effect that the sample cannot be saved after the playback is 
  3619.  completed.  This option has been provided for the case where the operator has 
  3620.  no intention of saving the file when it has been loaded from the command line. 
  3621.  
  3622.  Enable Quick queueing 
  3623.  
  3624.  PlSndX has the ability to double buffer sound samples so that they can be 
  3625.  played back in quick succession.  This feature is only enabled when the Free 
  3626.  memory after loading is checked.  This form of operation is disabled by 
  3627.  default because it defeats the advantage of the Free memory after loading when 
  3628.  it creates the file buffer.  The operation is very simple.  Since the main 
  3629.  buffer is freed after the MMPM/2 buffers are filled, it is available to load 
  3630.  the next sample.  When this feature is enabled, the buffer is automatically 
  3631.  loaded while the playback of the current file continues.  As soon as the 
  3632.  current file completes, the new buffer is passed to MMPM/2 and the cycle 
  3633.  repeats till there are no more files in the queue.  The files may be queued in 
  3634.  any of the methods for loading a file such as selecting multiple files from 
  3635.  the OPEN dialog, selecting a file in the OPEN dialog while playback is 
  3636.  ongoing, or by utilizing the piping feature of the commandline playback. 
  3637.  
  3638.  
  3639. ΓòÉΓòÉΓòÉ 5.7. EdSndX Specific Properties ΓòÉΓòÉΓòÉ
  3640.  
  3641. Enable UNDO 
  3642.  
  3643. When a sample file is changed through the editor, a tools or a new file is 
  3644. loaded, the sample is buffered so that the operation can be undone.  To access 
  3645. the UNDO feature, selecting the UNDO button on the Edit dialog.  The UNDO 
  3646. feature is only available when PMsndX is registered. 
  3647.  
  3648. Note:  By default the UNDO feature is not enabled to conserve memory.
  3649.  
  3650.  Use Displayed Channel 
  3651.  
  3652.  Some of the tools of the toolbox can operate on a selected channel or all 
  3653.  channels of a sample.  These tools provide a checkbox within the tool dialog 
  3654.  to select the mode of operation and the default mode can be set through this 
  3655.  property. 
  3656.  
  3657.  Use Selected Range 
  3658.  
  3659.  Some of the tools of the toolbox can operate on a selected range or on the 
  3660.  entire sample.  These tools provide a checkbox within the tool dialog to 
  3661.  select the mode of operation and the default mode can be set through this 
  3662.  property. 
  3663.  
  3664.  
  3665. ΓòÉΓòÉΓòÉ 5.8. EdSndX Editor Specific Properties ΓòÉΓòÉΓòÉ
  3666.  
  3667.  The settings on this page are identical to those found in the menus of the 
  3668. editor and are provided here to maintain a consistent place for controlling all 
  3669. settings. 
  3670.  
  3671. Info 
  3672.  
  3673. This setting is used to control the display of the information section of the 
  3674. editor window.  This setting is the same as the Display Info in the editor 
  3675. menu. 
  3676.  
  3677. All Channels 
  3678.  
  3679. This property is used to control the display of the channels in the editor 
  3680. window.  This setting is the same as the All Channels in the editor menu. 
  3681.  
  3682. Delay AUDIO Loading 
  3683.  
  3684. This property is used to control the loading of the audio buffers within the 
  3685. editor.  This setting is the same as the Delay AUDIO Loading in the editor 
  3686. menu. 
  3687.  
  3688. Setup AUDIO at Play 
  3689.  
  3690. This setting is used to control the loading of the audio buffers when the play 
  3691. button is pressed in the editor window.  This setting is the same as the Load 
  3692. AUDIO at playback in the editor menu. 
  3693.  
  3694. Auto Repeat 
  3695.  
  3696. This property allows the user to control the repeat feature of the audio 
  3697. portion of the editor window.  This setting is the same as the Auto repeat in 
  3698. the editor menu. 
  3699.  
  3700. Format MM:SS.hhhh 
  3701.  
  3702. This property is used to control the display of the index for sample 
  3703. positioning in the editor.  This setting is the same as the Format in the 
  3704. editor menu. 
  3705.  
  3706. Play mode Range 
  3707.  
  3708. This property is used to select the method for playback.  This setting is the 
  3709. same as the Play mode in the editor menu. 
  3710.  
  3711.  
  3712. ΓòÉΓòÉΓòÉ 6. Technical Issues ΓòÉΓòÉΓòÉ
  3713.  
  3714. Memory Usage: I have worked with means for storing and converting from one 
  3715. format to another efficiently.  Initially I tried to store things in a data 
  3716. structure which was a union of all of the types of data that are used by the 
  3717. computers.  However, converting from one format to another was difficult and 
  3718. each effect had to be able to understand the initial and final format.  This 
  3719. became a headache considering that there can be either signed or unsigned 
  3720. samples of sizes byte or word.  As new effects were added, it became 
  3721. unmanageable.  At a sacrifice to memory efficiency, I have changed it to store 
  3722. all data as a signed SHORT (2 byte) sample.  The effects then operate 
  3723. generically on the samples and the only time that the type of data is important 
  3724. is when reading or writing the samples.  The savings in complexity justified 
  3725. the memory requirements.  As a result, if a sample is 1k of bytes (.wav 
  3726. format), then in memory it will take up 2k.  Currently the program will only 
  3727. read and write 8 and 16 bit samples. Since I don't know of any sound cards that 
  3728. can sample at greater bit sizes, this is the limit.  In the future, this 
  3729. approach to memory usage can be easily extended to 32 bits without rewriting 
  3730. every part of the program.  In fact, to change the storage sizes, two 
  3731. definitions have to be changed and then the proper input/output routines 
  3732. written.  Simple? I think so. 
  3733.  
  3734. Significant Changes in version 2.00: 
  3735.  
  3736. Version 2.0 of PMsndX represents a significant change in the form and function 
  3737. of the program.  All of the changes have been incorporated into the REXX 
  3738. processing and in some cases, the results of the REXX operations may have 
  3739. changed such that previously correct REXX scripts no longer work. This section 
  3740. identifies the changes that are significantly different in the REXX scripts. 
  3741.  
  3742. COMMANDS and FUNCTIONS:  All portions of the rexx scripts have been converted 
  3743. to functions.  This eliminates a lot of confusion that was created in the 
  3744. previous version. 
  3745.  
  3746. FILE:  The FILE function has been changed to facilitate the multiple document 
  3747. interface.  As a result, the FILE function no longer returns the full path; 
  3748. rather, it returns a handle that is used to reference the file.  All functions 
  3749. have been changed to expect and require the handle. 
  3750.  
  3751.  
  3752. ΓòÉΓòÉΓòÉ 6.1. Additional known faults ΓòÉΓòÉΓòÉ
  3753.  
  3754. There is a known problem with PMsndX and version 3.0 of MMPM/2 which affects 
  3755. the performance of the Audio playback. When running PMsndX under Warp, anything 
  3756. which interrupts the playback of a sample (such as a system sound) will cause 
  3757. PMsndX to hang the next time playback is requested. I have tried to correct 
  3758. this but have found no solution at this time.  For this reason, I have provided 
  3759. the option to have PMsndX open the Audio device without sharing it (the 
  3760. default). This problem does not appear to affect PMsndX on previous versions of 
  3761. OS/2 (i.e. 2.0, 2.1 and 2.11). 
  3762.  
  3763. From an OS/2 window run the command SYSLEVEL.  If you receive the following 
  3764. output, then your system will probably exhibit the problem. 
  3765.  
  3766.       E:\MMOS2\INSTALL\SYSLEVEL.MPM 
  3767.                    IBM Multimedia Presentation Manager/2 
  3768.       Version 3.00   Component ID 562137400 
  3769.       Type W 
  3770.       Current CSD level: XR03000 
  3771.       Prior  CSD level: XR03000 
  3772.  
  3773.  To test to see if your system will encounter this problem, open a sample file 
  3774.  and select the AUDIO button on the main control panel. Start playback by 
  3775.  pressing the PLAY button and then pressing the PAUSE button.  Press the PAUSE 
  3776.  button again to resume playback. If the PLAY button stops moving after the 
  3777.  sample has finished playing, PMsndX will not lock up on your system.  You 
  3778.  should set PMsndX to share the audio device by going to the startup properties 
  3779.  page (from the main control panel system menu). If the playback button does 
  3780.  not stop moving after the sample has finished, then you should avoid using the 
  3781.  PAUSE button and leave PMsndX set so that it does not share the AUDIO device. 
  3782.  
  3783.  I apologize for this problem, and a new revision of MMPM/2 will correct this 
  3784.  in the future. 
  3785.  
  3786.  Minor limitations: 
  3787.  
  3788.    1. When recording a sample, the CD input cannot be used at this time. 
  3789.    2. There is no way to edit multiple sounds at the same time. 
  3790.  
  3791.  
  3792. ΓòÉΓòÉΓòÉ 7. Registration ΓòÉΓòÉΓòÉ
  3793.  
  3794. Registrations are available by contacting the Author. Paid registrations do not 
  3795. expire.  The expiration feature is provided to allow trial periods for 
  3796. businesses and packages which intend to distribute PMsndX at a cost to the 
  3797. user. 
  3798.  
  3799. Licensing and registration fees apply to the user interface and style of the 
  3800. program but do not apply to the algorithms used to create the effects.  These 
  3801. algorithms are public domain and may be copied and distributed freely. 
  3802.  
  3803. I have put a lot of effort into making this program robust and very pleasing. 
  3804. It has taken me more than a year and a half and 46,000 lines of code to get 
  3805. this program to where it is now, and I would hope that if you like the program 
  3806. and use it, you will appreciate it enough to send me a little cash to help fund 
  3807. future work.  I don't expect much. 
  3808.  
  3809. Asking for money is a sticky thing.  The big problem is to give people a 
  3810. program so that they can play with it to see what it can do and yet hold back 
  3811. enough to get people to want to register the program.  I put a lot of thought 
  3812. into this and have considered the many ways that authors achieve their goals. 
  3813. My solution was to disable the ability to read or write any formats other than 
  3814. the PC (.WAV) and Sun (.AU) types, disable the UNDO capibility, and limit the 
  3815. editing capability. 
  3816.  
  3817.  
  3818. ΓòÉΓòÉΓòÉ 8. Shareware ΓòÉΓòÉΓòÉ
  3819.  
  3820. I have three options which I can offer which seem to follow with common 
  3821. SHAREWARE practice.  A registration form is provided in the file ORDER.TXT and 
  3822. the following are the options for registration. 
  3823.  
  3824. 1.  $10.00 will get you a password that will enable all of the functions of the 
  3825. current version. 
  3826.  
  3827. 2.  $20.00 will get you a password that will enable all of the functions for 
  3828. all versions up to the next major release.  If you chose to register using 
  3829. option 2 first and then want to upgrade, I will give you a $5 credit and you 
  3830. can get option 2 for $15.00. 
  3831.  
  3832. 3.  $40.00 will get you a password that will enable all of the functions for 
  3833. all future versions.  If you have chosen to register using option 2 first, I 
  3834. will give you a $10 credit and you can get the lifetime registration for 
  3835. $30.00.  If you have registered with option 1 first, then I will give you $5 
  3836. credit and you can get the lifetime registration for $35.00. 
  3837.  
  3838. Note:  Please note.  These prices cover just the registration.  Shipping 
  3839.        charges for the disks through the Postal service are extra.  If you 
  3840.        order the program through the mail, add $5.00 to cover the media and 
  3841.        shipping costs.  If you are an individual and do not have access to the 
  3842.        internet, I can send you a disk and registration for the fee of $5.00 to 
  3843.        cover the media and shipping costs.  Also, I also retain the right to 
  3844.        deny registrations at any time.  I will typically deny registration to 
  3845.        anyone who has an address that implies that it will be used in a 
  3846.        corporate or government environment. 
  3847.  
  3848.  Now, what do you get when you register.  Well, you obviously get a password 
  3849.  that will enable all functions of the program.  The functions that are 
  3850.  disabled for unregistered users are: 
  3851.  
  3852.  Formats   Only .WAV and .AU format can be loaded and saved 
  3853.  Editor    The Cut and Paste operations of the editor only work for the full 
  3854.            sample (i.e. will not work for ranges) 
  3855.  Undo      The UNDO function is disabled 
  3856.  REXX      The REXX functionality is disabled 
  3857.  
  3858.  In addition to that, I can provide limited technical support for paying users 
  3859.  through regular phone service, email, or the US Postal service.  A number of 
  3860.  people have contacted me to ask for special programs (e.g. programs that will 
  3861.  just play any format without the overhead of the editor or a program that will 
  3862.  just convert between formats).  These will be fairly easy to create using the 
  3863.  existing objects of PMsndX.  If you are registered for PMsndX, these programs 
  3864.  will automatically recognize the registration and work on your system. 
  3865.  
  3866.  If and when you register, you will receive a password through whatever means 
  3867.  that you prefer.  If you choose the postal service, you will receive it via 
  3868.  disk along with the latest copy of the program (remember to include an 
  3869.  additional $5.00 to cover the shipping and media).  If you choose to receive 
  3870.  your registration through email, you will receive an email message that can be 
  3871.  imported using the FILE button of the registration dialog.  Registrations will 
  3872.  be sent after your form of payment has cleared. 
  3873.  
  3874.  Since PMsndX is provided as SHAREWARE, there is no provision for refunds.  In 
  3875.  the event that you are dissatisified with the operation of PMsndX due to an 
  3876.  error in loading or saving a format, contact me and I will fix the program if 
  3877.  you can provide me with a copy of the file that is causing the problem or 
  3878.  enough detail that I can recreate the problem. 
  3879.  
  3880.  Send registrations to: 
  3881.  
  3882.       Scott Hiles 
  3883.       4421 Savannah St. 
  3884.       King George, VA 22485 
  3885.  
  3886.  WiSHware is a sole Proprietorship and can be reached through the phone at 
  3887.  (540) 663-0815.  This is the author's home phone and should not be called 
  3888.  unless the author cannot be contacted through any other means. 
  3889.  
  3890.  PMsndX is a form of SHAREWARE and as such requires a registration for all of 
  3891.  the functions of the program to be used.  What makes PMsndX different from 
  3892.  other shareware programs?  Well, simply put, any individual who contacts the 
  3893.  author and sends a completed ORDER.TXT file will receive a free registration. 
  3894.  You can email the completed ORDER.TXT file (after all, you don't need to send 
  3895.  it through US Mail if it is free and you are not sending a check) to me at 
  3896.  wishware@cais.com.  The only time that a registration must be paid for is when 
  3897.  it is used for business purposes in which an individual, company, or 
  3898.  government agency uses PMsndX in the office environment or makes a profit from 
  3899.  the use of PMsndX.  If you make a profit, then I want to make a profit.  This 
  3900.  is not to say that I will not accept donations for my efforts; rather, they 
  3901.  are not required for individuals.  This is the reason that the program still 
  3902.  requires a password and is also the reason that the user must contact the 
  3903.  author to get a registration.  It lets me keep track of who is using it, how 
  3904.  popular it is, and how far the distribution has gotten.  Now, why is this 
  3905.  tidbit hidden in the help file and not in plain sight?  It is the reward that 
  3906.  you get for reading the help file. 
  3907.  
  3908.  
  3909. ΓòÉΓòÉΓòÉ 9. Entering Registration Info ΓòÉΓòÉΓòÉ
  3910.  
  3911. Once you receive your registration you have a couple of options for entering it 
  3912. into the program.  First, pull up either the Welcome or About dialog box from 
  3913. the system menu of PMsndX.  Press the REGISTER button to bring up the 
  3914. registration dialog box. 
  3915.  
  3916. You may enter the data directly into the entry fields or you may have the 
  3917. program scan a data file for your registration information. When entering data, 
  3918. enter it exactly as it is shown in the file or text for your registration.  The 
  3919. Name field must not have any additional spaces and it must be entered in exact 
  3920. case. The password is 16 characters long and will never contain any space 
  3921. characters.  It is case sensitive so be careful to get the case right. 
  3922. Passwords never contain the upper case letter O or the upper case letter I to 
  3923. avoid confusion with similar looking numbers. 
  3924.  
  3925. When PMsndX scans a file for the password information, it looks for the 
  3926. following keys: 
  3927.  
  3928.       PMsndX Name: 
  3929.       Through version: 
  3930.       Expiration date: 
  3931.       PMsndX Password: 
  3932.  
  3933.  These lines can be anywhere in a file so there is no need to remove a mail 
  3934.  header or extra information.  PMsndX will search the file for the specific 
  3935.  text that it is looking for and extract it. 
  3936.  
  3937.  The registration information is stored in the file called os2.ini.  This 
  3938.  allows a copy of PMsndX to be run from a network and each machine can have 
  3939.  it's own registration. This also allows the pmsndx.ini file to be copied form 
  3940.  one machine to another without violating the licensing agreement.  Five items 
  3941.  are stored in the os2.ini and total about 100 bytes.  Any .ini editor can be 
  3942.  used to remove this information if the user wishes to delete PMsndX from the 
  3943.  system. 
  3944.  
  3945.  Note:  The information in the os2.ini file is only written when the program is 
  3946.         registered.  This avoids adding stuff to the os2.ini file unless the 
  3947.         user has chosen that the program is worth keeping. 
  3948.  
  3949.  
  3950. ΓòÉΓòÉΓòÉ 10. Tradeoffs ΓòÉΓòÉΓòÉ
  3951.  
  3952. When PMsndX is operating on a sample for the clipboard, AUDIO, or the tools, it 
  3953. stores the entire sample in memory.  This has the advantage that the program 
  3954. can double buffer the sample for faster operation; but, it has the disadvantage 
  3955. that it can take up a tremendous amount of memory to hold large samples. 
  3956. PMsndX provides the user with a simple interface at the expense of resources on 
  3957. the host computer. 
  3958.  
  3959.  
  3960. ΓòÉΓòÉΓòÉ 11. Copyright ΓòÉΓòÉΓòÉ
  3961.  
  3962. The author makes NO WARRANTY or representation, either expressed or implied, 
  3963. with respect to PMsndX, its quality, accuracy, merchantability, or fitness for 
  3964. a particular purpose.  This software is provided "AS IS" and you, its user, 
  3965. assume the entire risk as to its quality and accuracy. 
  3966.  
  3967. This software is copyright (C) 1994, William S. Hiles.  All rights Reserved 
  3968. except as specified below. 
  3969.  
  3970. Permission is hereby granted to use, copy, and distribute this software (or 
  3971. portions thereof) for any purpose, without fee, subject to these conditions: 
  3972.  
  3973. (1) The eight files, edsndx.exe, plsndx.exe, pmsndx.hlp, readme.txt, 
  3974. history.txt, license.txt, order.txt and file_id.diz must always be included 
  3975. during distribution. Any alterations to the files must be clearly documented. 
  3976. No changes may be made to the About screen or any of the copyright information. 
  3977.  
  3978. (2) Permission for use of this software is granted only if the user accepts 
  3979. full responsibility for any undesirable consequences.  The author accepts NO 
  3980. LIABILITY for damages of any kind. 
  3981.  
  3982. (3) Permission is not granted for the use of the author's name or company name 
  3983. in advertising or publicity relating to this software or products derived from 
  3984. it. 
  3985.  
  3986. (4) Users are granted permission to collect fees for the distribution of 
  3987. PMsndX, (such as BBS's that have a membership fee or a downloading charge, or 
  3988. FTP sites that sell cdrom versions of their archives) but users are 
  3989. specifically prohibited from selling PMsndX as a product or bundling PMsndX 
  3990. with other products that are then sold. 
  3991.  
  3992. (5) Unless otherwise negotiated in writing with the Author, registration 
  3993. passwords for PMsndX may not be distributed in part or in whole.  Registrations 
  3994. are provided to individuals (or for site licensing as negotiated at time of 
  3995. registration) and may not be distributed or transferred. 
  3996.  
  3997.  
  3998. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3999.  
  4000. The following formats are supported by PMsndX. 
  4001.  
  4002.  APPLE (.aif)*  Apple 8/16 bit unsigned multi-channel samples 
  4003.  SUN (.au)      Sun/DEC/NeXT 8 or 16 bit single channel signed data samples or 
  4004.                 8 bit ULaw samples. 
  4005.  RIFF (.avi)*   OS/2 movie format (PMsndX extracts the Audio and discards the 
  4006.                 video information) 
  4007.  MAC (.hcm)*    Apple Macintosh 8 bit single channel samples 
  4008.  RAW (.ub)*     Raw 8 bit single channel unsigned samples without header 
  4009.                 information 
  4010.  RAW (.sb)*     Raw 8 bit single channel signed samples without header 
  4011.                 information 
  4012.  RAW (.uw)*     Raw 16 bit single channel unsigned samples without header 
  4013.                 information 
  4014.  RAW (.sw)*     Raw 16 bit single channel signed samples without header 
  4015.                 information 
  4016.  RAW (.ul)      Raw 16 bit U-Law single channel samples 
  4017.  IRACAM (.sf)*  Software produced 16 bit signed samples 
  4018.  PC (.voc)*     Creative Voice file format, 8 bit single channel unsigned 
  4019.                 samples 
  4020.  SAMP (.smp)*   Turtle beach samplevision files 
  4021.  PC (.wav)      Windows or OS/2 8 bit unsigned/16 bit signed multi-channel data 
  4022.                 samples 
  4023.  REXX (.cmd)*   REXX command script 
  4024.  *              Types identified by * are supported only when PMsndX is 
  4025.                 registered. 
  4026.  
  4027.  The .WAV format is actually defined as a RIFF file.  The header and data are 
  4028.  very robust and there are extensions for proprietary keywords and formats. 
  4029.  PMsndX only supports the standard PCM format and will not load proprietary 
  4030.  formats.  You will receive a STYLE error if it contains an unsupported format. 
  4031.  
  4032.  
  4033. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  4034.  
  4035. The bits in a word are stored such that the leftmost bit is stored first in the 
  4036. first byte and the rightmost bit is stored last in the last byte.  If a word is 
  4037. composed of 16 bits, the word would be written to a file starting with bit 16 
  4038. and ending in bit 0. 
  4039.  
  4040. The number 0x1234 (0001 0010 0011 0100) is actually stored as 0001 0010 0011 
  4041. 0100. 
  4042.  
  4043.  
  4044. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  4045.  
  4046. The bits in a word are stored such that the leftmost bit is stored first in the 
  4047. last byte and the rightmost bit is stored last in the first byte.  If a word is 
  4048. composed of 16 bits, the word would be written to a file starting with bit 7 
  4049. and ending in bit 8. 
  4050.  
  4051. The number 0x1234 (0001 0010 0011 0100) is actually stored as 0011 0100 0001 
  4052. 0010. 
  4053.  
  4054.  
  4055. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  4056.  
  4057. There are four methods of transitioning channels in a sample. These methods are 
  4058. used in various tools to provide a smooth transition from one end of a range to 
  4059. another.  The four types of transitions are listed in the following text. 
  4060.  
  4061. The first method is linear.  In this case, the increase or decrease in the 
  4062. volume is constant over time.  This can be defined by the mathematical 
  4063. equation: 
  4064.  
  4065. volume(t) = volume(t) * t/interval 
  4066.  
  4067. A second method for adjusting the volume is to use a geometric expression so 
  4068. that the sample transitions slowly in the beginning of the range and then 
  4069. changes quickly toward the end of the range. To transition a sample out slowly 
  4070. over time a form of the function: 
  4071.  
  4072. volume(t) = volume(t) * (1 - (t/interval))┬ñ 
  4073.  
  4074. The third method is exactly the reverse of the slow transition in which the 
  4075. transition moves very quickly in the beginning of the range and then slowly 
  4076. reaches the end of the range. The equation for this is as follows: 
  4077.  
  4078. volume(t) = volume(t) * (t/interval)┬ñ 
  4079.  
  4080. Finally a fourth method is to have the samples make an immediate transition or 
  4081. a step.  In this case, the transition is made immediately at the beginning of 
  4082. the range.